Fluent Commerce Logo
Docs

Configure Relative Date Filtering and Default Timeframes

How-to Guide

Author:

Yulia Andreyanova

Changed on:

26 Feb 2026

Key Points

  • Relative date filtering enables dynamic time-based presets (e.g., last hour, last 24 hours, last 7 days).
  • Relative timeframes are calculated at runtime using templates.
  • This capability can be applied wherever date-based filters are supported.

Steps

Step arrow right iconUnderstand Relative Date Filtering

Relative date filtering allows filter values to be dynamically calculated based on the current time rather than fixed timestamps.You can define relative logic, such as:
  • Last 1 hour
  • Last 24 hours
  • Last 7 days
  • Last 30 days
This reduces user interaction and ensures results remain time-relevant.

Step arrow right iconConfigure Default Relative Timeframe

Default date values can be configured using the `filter.overrides` property of the List component.When users open a date filter, the configured default timeframe is pre-populated in the date picker. The filter is not automatically applied — users must confirm the selection for it to take effect.