all articles

safari does not support hyphen as Date delimiter

2015-06-30 @sunderls

safari date hyphen delimiter js

desc

safari(both MacOS & iOS) doesn't support hyphen as date delimiter.

you cannot do something like:

new Date('2015-06-29 23:02')

this will cause error 'Invalid Date'

rather, we should use slash '/' since it is most safe to be used

 new Date('2015/06/29 23:02')