---
title: Year
description: Learn how to use the 'year' calendar type to display a list of years and select the year and month. Restrict the user's selection to only the year and month.
section: 2. Calendar Types
---

# Year

The `'year'` calendar type displays a list of years, allowing the user to select a year from the list and a month from the corresponding header. This mode is useful if you need to restrict the user's selection to only the year and month, excluding the ability to select specific days.

<Sandbox example="type-year" />
