Skip to content

Instantly share code, notes, and snippets.

@Underwaterr
Created January 13, 2017 17:43
Show Gist options
  • Save Underwaterr/df0142efc3bd2b7168ada02ea3a9a155 to your computer and use it in GitHub Desktop.
Save Underwaterr/df0142efc3bd2b7168ada02ea3a9a155 to your computer and use it in GitHub Desktop.
Converts from C# DateTime object to JavaScript Date object
// Converts from C# DateTime object to JavaScript Date object
function parseDate(date) {
return new Date(parseInt(/-?\d+/.exec(date)[0]))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment