This module provides a custom field type to capture only the year portion of a date.

Post-Installation

After the module is installed and enabled, the Year Only field is available in the 'Add field' UI:

  • Prior to Drupal 10.2: Year Only has its own category.
  • Drupal 10.2+: The field is available under the Date and time field category.

Year only as an option under date and time

Supporting organizations:

Project information

Releases

9.1.3 Stable release covered by the Drupal Security Team released 15 January 2026
Works with Drupal: ^8.8 || ^9 || ^10 || ^11

Adds tests, flexible year ranges and default year values.

Install:

Development version: 9.x-dev updated 15 Jan 2026 at 23:20 UTC