I am curious about how to determine the first and last day of the main month displayed in fullcalendar.
Here is an example of the relevant month view:
https://i.sstatic.net/1eNUH.png
events: function (start, end, timezone, callback) { //custom events function that runs every time the view changes
alert (start.format());
alert (end.format());
},
When I test this code on a specific month (April 2017), I get: start.format()=2017-03-26 end.format()= 2017-05-07 However, I would prefer to retrieve the following dates: start: 2017-04-01 end: 2017-04-30
Is there a way for me to obtain these dates within the event function?
Thank you!
p.s. I would rather not utilize the "showNonCurrentDates: false" option