how do i display the end time of an even in fullcalendar? My event is triggered right, but there is no end time displayed This is an example event. Did i miss something?
title:'WM 2010 - 03.06.2010 - 00:00', description: 'Bei uns ist jeden Tag WM Party', start: new Date(2010, 5, 3, 00, 5), end: new Date(2010, 6, 3, 23, 6), allDay: true
This option is available from v2. 4.0 see fullcalendar.io/docs/text/displayEventTime - You need to set it as option of fullCalendar and it affects all events. Or use CSS . fc-time{ display : none; } .
We can get start date by getView event with intervalStart. We can get end date by getView event with intervalEnd. var month = $('#calendar'). fullCalendar('getView').
FullCalendar's getDate returns a moment object, so you need moment's toDate() method to get date out of it. So, in you code try: console. log(currentDate.
The appropriate solution in the most recent version of fullCalendar is to use displayEventEnd. This is because timeFormat afects more stuff. displayEventEnd allows us to even specify the views where we want the end time to be shown.
displayEventEnd: { month: false, basicWeek: true, "default": true }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With