How to handle json DateTime returned from WCF Data Services (OData)
问题 I believe I am missing something obvious here. When I request a JSON response from an OData service I get a different result for the DateTime properties than I do when I request XML. I'll use the NerdDinner OData feed as an example. JSON: http://www.nerddinner.com/Services/OData.svc/Dinners(1)?$format=json "EventDate": "\/Date(1235764800000)\/" XML: http://www.nerddinner.com/Services/OData.svc/Dinners(1) <d:EventDate m:type="Edm.DateTime">2009-02-27T20:00:00</d:EventDate> When I do an alert