Adds relative date range filters to Drupal search facets, so visitors can narrow results by periods such as last week or this month.
Features
Configure date ranges using relative expressions, such as “-1 week.” The ranges update over time, so you don’t need to change fixed dates manually. Use this module to help visitors filter search results by recent or other changing date periods.
Post-Installation
Create or edit a facet for a date field used by your Search API search. Select the **Relative Date range** query type and enable the **Customizable relative date item range processor**. Add the ranges you want to display and set their start and end dates using PHP relative date formats.
Additional Requirements
- https://www.drupal.org/project/facets
Similar projects
- https://www.drupal.org/project/relative_date_facets
This module sets a relative date from now.
Ask your assistant about Relative date range facets
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
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
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-alpha2 | Pre-release | Dec 1, 2026 | |||
| 1.0.0-alpha1 | Pre-release | Dec 1, 2026 |