# dayCount

> FullCalendar v3 documentation, for an old release. Web version: https://legacy.fullcalendar.io/v3/dayCount
>
> Latest version (v7): https://fullcalendar.io/docs/dayCount.md

Sets the exact number of days displayed in a custom view, regardless of [weekends](https://legacy.fullcalendar.io/v3/weekends.md) or [hiddenDays](https://legacy.fullcalendar.io/v3/hiddenDays.md).

<div class='spec' markdown='1'>
Integer
</div>

When a view's range is specified with a [duration](https://legacy.fullcalendar.io/v3/duration.md), hidden days will simply be omitted, and the view will stretch to fill the missing space. However, if you specify `dayCount`, you are guaranteed to see a certain number of days.

Example for a [Custom View](https://legacy.fullcalendar.io/v3/custom-view-with-settings.md):

```js
$('#calendar').fullCalendar({
  weekends: false,
  defaultView: 'agendaFourDay',
  views: {
    agendaFourDay: {
      type: 'agenda',
      dayCount: 4
    }
  }
});
```

Simpler example for a calendar with one view:

```js
$('#calendar').fullCalendar({
  weekends: false,
  defaultView: 'agenda',
  dayCount: 4
});
```
