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