Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

views_year_filter

6,650 sites Security covered
View on drupal.org

This module add the possibility to expose date/date time filter with year (format CCYY) instead of using full date (format CCYY-MM-DD HH:MM:SS) or offset from the current time.

This module support Bootstrap Datepicker library

Configuration

This module has only one setting if you want to display your exposed filter with Bootstrap Datepicker library go to /admin/config/views-year-filter/settings check Use Bootstrap Datepicker, SAVE and Clear cache.

you will have Datepicker popup with only years as it shown in the last screenShot.

Note: This module support the following operators

  1. Less than
  2. Less than or equal to
  3. Equal to
  4. Not equal to
  5. Greater than or equal to
  6. Greater than
  7. Between

⚠️ Warning

This module conflicts with the Smart Date module because both implement hook_views_plugins_filter_alter.
If Smart Date is enabled, you must use its date filter with year granularity instead of the filter provided by this module.

As a result, when Smart Date is enabled, the date filter from this module will not appear as an option for your date fields.

Note: This applies only to Date-only fields, not DateTime fields or Search API date fields.

Activity

Total releases
2
First release
Feb 2025
Latest release
4 months ago
Release cadence
274 days
Stability
100% stable

Releases

Version Type Release date
2.1.7 Stable Nov 23, 2025
2.1.6 Stable Feb 22, 2025