ASP.NET MVC JsonResult Date Format

前端 未结 25 3257
渐次进展
渐次进展 2020-11-21 11:22

I have a controller action that effectively simply returns a JsonResult of my model. So, in my method I have something like the following:

return new JsonRes         


        
25条回答
  •  温柔的废话
    2020-11-21 11:51

    Moment.js is an extensive datetime library that also supports this. http://momentjs.com/docs/#/parsing/asp-net-json-dates/

    ex: moment("/Date(1198908717056-0700)/")

    It might help. plunker output

提交回复
热议问题