Skip to content

Instantly share code, notes, and snippets.

@Donmclean
Created September 19, 2015 15:08
Show Gist options
  • Save Donmclean/ae348529b4b5e0e36b40 to your computer and use it in GitHub Desktop.
Save Donmclean/ae348529b4b5e0e36b40 to your computer and use it in GitHub Desktop.
This snippet parses Timestamp to readable Date ISO
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