# duration

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

Sets the exact duration of a custom view.

<div class='spec' markdown='1'>
[Duration](https://legacy.fullcalendar.io/v3/moment-duration.md)-ish object
</div>

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

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

Simpler example for a calendar with one view:

```js
$('#calendar').fullCalendar({
  defaultView: 'agenda',
  duration: { days: 4 }
});
```

## Special Case

If the duration is specified like `{weeks:1}`, then the [dateAlignment](https://legacy.fullcalendar.io/v3/dateAlignment.md) will automatically default to start-of-week. However, if it is specified as `{days:7}`, then no such alignment will happen.
