Skip to content

Instantly share code, notes, and snippets.

@adambankin
Created July 5, 2016 21:13
Show Gist options
  • Save adambankin/4cbfaa7ef30adc3f591e85ea360135c9 to your computer and use it in GitHub Desktop.
Save adambankin/4cbfaa7ef30adc3f591e85ea360135c9 to your computer and use it in GitHub Desktop.
function parseDate (str) {
return new Date(Date._parse(str.replace('T', ' ').replace('-', '/')));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment