Dealing with JSON Dates in ASP.NET MVC

Most of the time, data transfer during Ajax communication is facilitated using JSON format. While JSON format is text based, lightweight and simple it doesn't offer many data types. The data types supported in JSON include string, number, boolean, array, object and null. This support for limited data types poses some difficulties while dealing with dates. Since there is no special representation for dates in JSON, ASP.NET uses its own way to deal with dates. This article discusses how dates are serialized in JSON format by MVC action methods and how to deal with them in your client side jQuery code.

http://www.binaryintellect.net/articles/6fced3b9-6cbc-46e1-a3d3-9c4c00659c8d.aspx

 

No Comments