Created
August 11, 2014 04:46
-
-
Save KyleGobel/45ada3b83a5eef85ab6f to your computer and use it in GitHub Desktop.
.Net Dates to Javascript Dates
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
function date(s) { | |
return new Date(parseFloat(/Date\(([^)]+)\)/.exec(s)[1])); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment