JSON Date Serialization
Raw Page Methods
Page Methods with Service Wrapper
Raw JSON String Deserialization
Raw string de-serialization doesn't actually deserialize dates but returns the date as a string in the same ISO format that the date was encoded to. The following example demonstrates the dates pre-encoding and post encoding
JSON Extensions JSON String Deserialization
This example utilizes a few JSON extensions that support date de-serialization from ISO and .NET style JSON date formats back into native dates as part of the deserialization process. Same as the first example except using .parseWithDate() and .stringifyWcf() for encoding/decoding. Uses ServiceProxy.js.
This example calls a single result HTTP handler that returns a date using $.getJSON(). It demonstrates using the $.ajaxSetup() and dataFilter functionality of automatically applying JSON date parsing to all JSON AJAX requests fired by jQuery. Uses ServiceProxy.js.
Two way Date Conversion from ASMX AJAX Service
This example calls an ASMX AJAX service method called GetTime() that receives and returns a date value. Demonstrates two-way round tripping of dates through a Web Service using jQuery and the ServiceProxy class. Uses ServiceProxy.js.