how can i get start and end time of visible days in fullcalendar?
I need it for use in another javascript instace. Is there some function like -
If you're looking for the visible start and end date, that would be the visStart
and visEnd
property of the view object in version 1:
$('calender').fullCalendar('getView').visStart
$('calender').fullCalendar('getView').visEnd
and that would be intervalStart
and intervalEnd
in version 2:
$('calender').fullCalendar('getView').intervalStart
$('calender').fullCalendar('getView').intervalEnd
If you're looking for the start and end date of the current week / month, that would be the start
and end
property of the current view object:
$('calendar').fullCalendar('getView').start
$('calendar').fullCalendar('getView').end
Reference : Full Calendar documentation.