Reputation: 121
in the monthview fullcalendar has the nice feature to show the start time in the top line of non-allDay events. This might be useful if you don't want to provide further details in the event title.
I want to show several details in the month view, like start and end time (15.00 - 18-00), location, etc.
This leads to the fact that fullcalendar shows my events like this: "15 15.00 - 18.00".
Is there any way to prevent fullcalendar from showing the start time OR is there any way to get fullcalendar to show the full timespan (15.00 - 18.00)?
Thanks. Alex
Upvotes: 12
Views: 14131
Reputation: 9
I had the same problem... I got the solution though
Add this to your code:
displayEventEnd: true,
timeFormat: 'h:mma',
Upvotes: 0
Reputation: 1429
Try this, it works for me:
$('#calendar').fullCalendar({
displayEventTime : false
});
That should prevent fullcalendar to show the start-hour in the event headline.
Upvotes: 23
Reputation: 924
As @Isaak Kleinman said in a comment, this is the correct syntax:
timeFormat: ' ', //with the space
Upvotes: 4
Reputation: 1977
This is what you are looking for...
http://arshaw.com/fullcalendar/docs/text/timeFormat/
timeFormat: 'H(:mm)' // uppercase H for 24-hour clock
I beleive if you want to remove it all you would have to do is include an empty string aka...
timeFormat: ''(, or no , depending on if there is another object following)
Upvotes: 10