Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide start time in FullCalendar

On FullCalendar, in the month view, is there a way to hide an event's start time?

like image 866
Theo Avatar asked Apr 28 '10 18:04

Theo


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 turn off weekends in fullCalendar?

Just go from the startDate to the endDate and check if any of those days are weekends. If so, display the alert / popup and return false. select: (start, end, allDay) => { var startDate = moment(start), endDate = moment(end), date = startDate.


2 Answers

Just add to calendar options

displayEventTime: false 
like image 184
andrey Avatar answered Nov 09 '22 06:11

andrey


add the following style to your css

.fc-event-time{    display : none; } 

or in version 2+:

.fc-time{    display : none; } 
like image 35
Riz Avatar answered Nov 09 '22 08:11

Riz