# DayGrid View

A DayGrid view displays one or more cells, each representing a day.<!--more-->

There are numerous other options throughout the docs that affect the display of DayGrid view, such as the [date/time display options](date-display.md) and [locale-related options](localization.md).


## Week & Day View

The following example shows how to toggle between `dayGridWeek` and `dayGridDay`:

```js
import { Calendar } from 'fullcalendar'
import dayGridPlugin from 'fullcalendar/daygrid'

const calendar = new Calendar(calendarEl, {
  plugins: [dayGridPlugin],
  initialView: 'dayGridWeek',
  headerToolbar: {
    left: 'prev,next',
    center: 'title',
    right: 'dayGridWeek,dayGridDay' // user can switch between the two
  }
})
```

[View a demo &raquo;](daygrid-view-demo)


## Month View

The `dayGridMonth` view is the most common. [View docs specifically for month view &raquo;](month-view.md)


## Year View

The `dayGridYear` view shows one continuous grid of cells for an entire year. The user most scroll. The first cell of each month is emphasized, as controlled by [monthStartFormat](monthStartFormat.md).

```js
import { Calendar } from 'fullcalendar'
import dayGridPlugin from 'fullcalendar/daygrid'

const calendar = new Calendar(calendarEl, {
  plugins: [dayGridPlugin],
  initialView: 'dayGridYear'
})
```

[View a demo &raquo;](daygridyear-view-demo)

`dayGridYear` view was added in **v6.1.0**.


## Custom Duration

You can create DayGrid views [with arbitrary durations](custom-view-with-settings.md). The following creates a 4-week view:

```js
import { Calendar } from 'fullcalendar'
import dayGridPlugin from 'fullcalendar/daygrid'

const calendar = new Calendar(calendarEl, {
  plugins: [dayGridPlugin],
  initialView: 'dayGridFourWeek',
  views: {
    dayGridFourWeek: {
      type: 'dayGrid',
      duration: { weeks: 4 }
    }
  }
})
```

## Articles

- [Inline Week Number Render Hooks](inline-week-number-render-hooks.md) - In DayGrid view, week numbers appear inline within the day cells. Customize their appearance with these hooks.

## Daygrid-specific Options

- [dayCellFormat](dayCellFormat.md) - In DayGrid view, controls the date text shown in each day cell.
- [monthStartFormat](monthStartFormat.md) - When a dayGrid view is programmed to span across months, the text format for the first cell of each month.

## Demos

- [dayGridWeek and dayGridDay views](daygrid-view-demo)
- [dayGridYear view](daygridyear-view-demo)
