[FullCalendar 2] Fetching Today from the fullcalendar2

Forge Component
(30)
Published on 2019-03-29 by Daniel Filipe
30 votes
Published on 2019-03-29 by Daniel Filipe

HI Team,

i am trying to get the value when we clicked the "today" button on the calendar.

i have tried the following code snippet also.

$(".fc-today-button").click(function() {
    var CustomDefaultDate = OSFullCalendarInstance.calendar.state.dateProfile.activeRange.start;
    CustomDefaultDate = formatDate(CustomDefaultDate, 'dd/MM/yyyy');
    alert(CustomDefaultDate);
});

Can any one help on this.

Thanks

Srinivas Nalamati