How can I convert “/Date(1399739515000)/” into date format in JavaScript?

前端 未结 3 438
梦如初夏
梦如初夏 2021-01-22 11:23

My C# server side code is using listJson, it generates time strings like this:

\"CaptureTime\":\"/Date(1399739515000)/\"

How to convert into date fo

3条回答
  •  死守一世寂寞
    2021-01-22 11:58

    You can do it like this

    
    

    then d will be a javascript variable that you can then manipulate it on your scripts, like this code for example

    d.toUTCString();
    

提交回复
热议问题