问题
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