Just ran across this little gem.
new Date('2018-01-01') <- Sun Dec 31 2017 18:00:00 GMT-0600 (Central Standard Time) new Date('2018/01/01') <- Mon Jan 01 2018 00:00:00 GMT-0600 (Central Standard Time)
The second one uses a
/ separator, so it does not trigger the ISO parse branch. Instead it sensibly presumes I am interested in a date in the current time zone.