Created
September 19, 2015 15:08
-
-
Save Donmclean/ae348529b4b5e0e36b40 to your computer and use it in GitHub Desktop.
This snippet parses Timestamp to readable Date ISO
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
var startTimeISOString = "2013-03-10T02:00:00Z"; | |
var startTime = new Date(startTimeISOString ); | |
startTime = new Date( startTime.getTime() + ( startTime.getTimezoneOffset() * 60000 ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment