The OData DateTime format (assuming you haven't already formatted it out to a string) is dependent on the wire format negotiated between client and server. The format above is from JSON Verbose and corresponds to a standard JavaScript Date object. The Atom format is different, and JSON Light is different still. Of special note is that we decided to move away from the traditional JavaScript Date format in favor of ISO 8601 for JSON Light. In any of these cases, if you're using a client such as the WCF DS client or data.js, the client will take care of deserializing the value properly.
- Atom formatted date:
<d:OrderDate
m:type="Edm.DateTime">1996-07-04T00:00:00</d:OrderDate>
- JSON verbose formatted date:
"OrderDate":"\/Date(836438400000)\/"
- JSON light formatted date:
"ShippedDate":"1996-07-16T00:00:00"
For current client libraries on a variety of platforms, see here: http://www.odata.org/libraries