Skip to content

Instantly share code, notes, and snippets.

@paulmwatson
Created March 4, 2021 07:29
Show Gist options
  • Save paulmwatson/e427b37b8533753819d99783729c3e21 to your computer and use it in GitHub Desktop.
Save paulmwatson/e427b37b8533753819d99783729c3e21 to your computer and use it in GitHub Desktop.
// Firefox
Date.parse('2021-03-03 06:00')
//=> 1614744000000
// Chrome
Date.parse('2021-03-03 06:00')
//=> 1614751200000
// Safari
Date.parse('2021-03-03 06:00')
//=> NaN
// All browsers
Date.parse('3 Mar 2021 06:00 GMT')
//=> 1614751200000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment