Year provides a custom, integer-based field to capture only the year part of a date.
⚠️ Future Deprecation
Year is still fully supported, but will someday be deprecated (with migration path) in favor of Year Only.
See #3381046: Eventual Deprecation in favor of Year Only for details and updates.
Features
- Two included widgets: text field and select list (with sort option).
- Flexible min, max and default values. Set field constraints and default value using explicit numbers, or relative date strings ('+5 years', 'now', etc.).
- Dropdown year filter. Enable the year_views sub-module for a custom 'dropdown' views filter with a configurable range of years for more user-friendly exposed filters.
- Support for Feeds.
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Site structure
445 sites report using this module
- Created by justcaldwell on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.


