How to handle json DateTime returned from WCF Data Services (OData)

前端 未结 8 822
情书的邮戳
情书的邮戳 2020-12-01 11:19

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 req

8条回答
  •  囚心锁ツ
    2020-12-01 11:40

    If you're parsing WCF JSON date responses in Javascript, the Moment.js date framework removes much of the headache: Moment.js - Parsing ASP.NET JSON Dates. It also has some other handy methods.

提交回复
热议问题