“DateTimes in JSON are hard.
The problem comes from the JSON spec itself: there is no literal syntax for dates in JSON. The spec has objects, arrays, strings, integers, and floats, but it defines no standard for what a date looks like.”
http://www.newtonsoft.com/json/help/html/datesinjson.htm
References:
- http://forums.asp.net/t/2032829.aspx?Newtonsoft+JSON+MicrosoftDateFormat+per+controller
- http://stackoverflow.com/questions/32138659/newtonsoft-json-isodatetimeconverter-and-dateformathandling
- http://stackoverflow.com/questions/10033612/prevent-json-net-4-5-from-appending-timezone-offset-when-using-microsoftdateform
- http://www.newtonsoft.com/json/help/html/datesinjson.htm
- http://www.newtonsoft.com/json/help/html/SerializeDateFormatHandling.htm
- http://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_DateFormatHandling.htm
- http://www.hanselman.com/blog/OnTheNightmareThatIsJSONDatesPlusJSONNETAndASPNETWebAPI.aspx
Code: