Turn a JavaScript Date into a .NET DateTime value

Posted by: Rick Strahls WebLog, on 29 Mar 2006 | View original

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...

Advertisement

Similar Posts

  • What's Wrong With this Code? (#2) more
  • Functional Programming via Anonymous Delegates and Script# more
  • Yield to the power of the DataSource more
  • Implementing 3D Tic-Tac-Toe game in Visual Basic more
  • Need a date range in SQL without filling a table? more
  • More on DATEs and SQL more
  • Serializing Objects as JavaScript using Atlas and AjaxPro [Part 2] more
  • TDD Lesson 2 - Continuous Integration more
  • Taking a look at Nikhil's Script# more
  • SQL Brainteasers more

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD