Wrong Date in Javascript

后端 未结 3 1857
悲&欢浪女
悲&欢浪女 2021-01-16 03:10

I am trying to use the fullcalendar.io jquery plugin in my web application. For that, I parse a set of event data into fullcallendar\'s format like this:

Dat         


        
3条回答
  •  既然无缘
    2021-01-16 03:26

    When working with dates in JavaScript it usually a good idea to use something like Moment.js.

    Using Moment.js this is trivially easy...

    moment('2015-05-01T15:00:00.000').toDate();
    

提交回复
热议问题