Created
March 4, 2021 07:29
-
-
Save paulmwatson/e427b37b8533753819d99783729c3e21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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