Logo

This project is not covered by Drupal’s security advisory policy.

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.

Supporting organizations: 

Project information

Releases