Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fullcalendar Displaying the end time of an event

Tags:

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 
like image 647
antiheld2000 Avatar asked Jun 30 '10 14:06

antiheld2000


People also ask

How do I hide time in fullCalendar?

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; } .

How do I start and end date in fullCalendar?

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').

How do I get the date from fullCalendar?

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.


1 Answers

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                 } 
like image 146
mesosteros Avatar answered Sep 22 '22 07:09

mesosteros