Turn a JavaScript Date into a .NET DateTime value
Posted by: Rick Strahls WebLog,
on 29 Mar 2006 |
View original | NEW Bookmarked: 0 time(s)
Argh… this is annoying. I was mucking around with a Callback function in Anthem that's sending back a date from JavaScript. Anthem allows making JSON page method calls to the server, but it doesn't provide two way JSON support so any data passed from the client passes values as strings.
Well, dates come back in a really fucked up toString() format that is a pain to parse.
JavaScript has Date.toUTCString() and Date.toGTMString(), but these are returning different things for different...