javascriptserializer date format issue

前端 未结 2 1300
天命终不由人
天命终不由人 2021-01-19 20:56

I am serializing a complex object with lot of properties of other Types and Lists to JSON form but the issue is with DateTime properties. I get the epoch time with Javascrip

2条回答
  •  既然无缘
    2021-01-19 21:19

    This cannot be achieved using JavaScriptSerializer and without modifying the underlying class. This could be achieved with Json.Net.

提交回复
热议问题