---
id: gk-query-filters-relative-date-choices
title: "Filter - gk/query-filters/relative-date-choices"
sidebar_label: "gk/query-filters/relative-date-choices"
tags:
  - "2.6.0"
---

# Filter: gk/query-filters/relative-date-choices

Modify available relative date choices for date fields.

If the `operators` key is empty for a choice it will be applied to all operators.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $choices | `array<int,array\{text:>` | Array of relative date choices. |
| $form_id | `int` | The form ID. |

### Since

- 2.6.0

### Source

Defined in `src/Repository/DefaultRepository.php` at line 327

