Get active month, day, and year in full calendar in Angular

151 views Asked by At

I am working on full calendar where i want to get the current active month, year and day in full calendar on click of next and previous buttons.

enter image description here

  events: function(fetchInfo, successCallback, failureCallback) {  
        
        console.log(fetchInfo.startStr);
        console.log(fetchInfo.endStr);

in callback method able to get start and end date but it is starting from 28th August but i want start date like 1st september 2023

1

There are 1 answers

0
ADyson On

To get the date range in the callback to be only the month itself when fetching events for the month view, you can set

showNonCurrentDates: false

Documentation: https://fullcalendar.io/docs/showNonCurrentDates