Remove past dates and next months dates from the current month

rubyist picture rubyist · Oct 2, 2011 · Viewed 28.8k times · Source

Is it possible to remove the past dates and next month's dates from the fullcalendar? So for the current month it should display only current dates and days.

Answer

Bascht picture Bascht · Feb 14, 2012

You could try skipping the events in the eventRender() method:

eventRender: function(event, element, view)
{
   if(event.start.getMonth() !== view.start.getMonth()) { return false; }
}