Convert DateTime To JSON DateTime

前端 未结 7 1112

I have a WebService which return DateTime Field.

I get a result /Date(1379048144000)/ but

i want just 1379048144000 how can i ach

7条回答
  •  清酒与你
    2020-12-16 21:54

    with Json.NET :

    string date = Newtonsoft.Json.JsonConvert.SerializeObject(DateTime.Now);    
    

提交回复
热议问题