Created
January 13, 2017 17:43
-
-
Save Underwaterr/df0142efc3bd2b7168ada02ea3a9a155 to your computer and use it in GitHub Desktop.
Converts from C# DateTime object to JavaScript Date object
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
// 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