Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Views year filter

6,659 sites Security covered Drupal 10–11 Views ecosystem
View on drupal.org

This module provides a Views filter for date fields that allows users to filter by year only, rather than the full date or relative to the current date. It supports various comparison operators and can optionally integrate with the Bootstrap Datepicker library for a user-friendly year selection interface.

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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Feb 2025
Latest release
9 months ago
Releases (12 mo)
1
Maintenance
Active

Releases

Version Type Core Release date
2.1.7 Stable 10–11 Nov 23, 2025
2.1.6 Stable 10–11 Feb 22, 2025