Last active
January 28, 2019 14:19
-
-
Save kylekatarnls/4d54a7843dd3eba165da525999192140 to your computer and use it in GitHub Desktop.
Date chunk code for medium articles: https://medium.com/@kylekatarnls/always-use-utc-dates-and-times-8a8200ca3164
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
new Date('2001-12-31T23:59:59.000000Z').toLocaleString('en-US', { | |
timeZone: 'Asia/Calcutta' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment