JavaScript implementation: how to write beautiful conditional expression>>>
The reason for the error is very simple, the reason is repeated
For example, date format:
Correct: to_ DATE(‘2012-07-03 13:04:58’, ‘yyyy-MM-dd hh24:mi:ss’)
Error: to_ Date (‘2012-07-03 13:04:58 ‘,’yyyy MM DD hh24: Mi: DD’) DD is a duplicate
Error: to_ Date (‘2012-07-03 13:04:58 ‘,’yyyy MM DD hh24: mm: Ss’) mm is repeated
Error: to_ Date (‘2012-07-03 13:04:58 ‘,’yyyy MM DD hh24: mm: DD’) DD, mm is repeated