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
- Less than
- Less than or equal to
- Equal to
- Not equal to
- Greater than or equal to
- Greater than
- 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.
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.6,650 sites report using this module
- Created by berramou on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.




