FullCalendar date format

前端 未结 2 1130
死守一世寂寞
死守一世寂寞 2020-12-18 05:09

Want to find the way to change the default date format in FullCalendar.

Actually, it is:
Tue Aug 13 2013 18:00:00 GMT-0400 (EDT)

2条回答
  •  被撕碎了的回忆
    2020-12-18 05:29

    My solution:

          select: function (start, end, allDay) {             
            var startFix= moment($.fullCalendar.formatDate(start, 'YYYY-MM-DD'));               
            newCalendar(startFix);           
        }
    

提交回复
热议问题