formatting events date and time on fullcalendar

孤人 提交于 2019-12-11 18:32:04

问题


Supposing am getting the dates for an event from a database in what format should my event date be am thinking.

start: 2012-03-29, 08:00am, end: 2012-03-30, 08:00am, allday: false,

it does not recognize the end date and the time for the event

Am I doing the wrong thing?


回答1:


I use the following format and it works for me:

mm/dd/yyyy hh:mm tt
e.g.
03/15/2012 05:10 AM

Also make sure that in your JSon you have allDay as a boolean and not as a string

"allDay"= "false", // this is wrong. In this case you won't see any events on your calendar

"allDay"= false,   // This is correct

Hope this helps



来源:https://stackoverflow.com/questions/9933373/formatting-events-date-and-time-on-fullcalendar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!