Posted in Code Snippets, Developer

FullCalendar : Hide dates of previous and next month

FullCalendar by default displays the dates of past and next month. This shows 6 rows on the view. Sometimes, when the complete last week (6th row) will be next month’s dates would have lesser desire for the users. Example: April 2019

Last row (5-11 dates) are for the month of May 2019

We have the option to disable the last row as:

Or even, remove the unwanted last row as:

This can be done with the Month-view specific options:

  1. showNonCurrentDates
  2. fixedWeekCount

showNonCurrentDates

showNonCurrentDates: false

Days will not be printed on the squares and not events will be rendered. By default, it will be set to true

fixedWeekCount

fixedWeekCount: false


Depending on the month, the calendar will have either 4, 5, or 6 weeks. By default, it will be set to true

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s