<!-- https://svgrid.com/docs/recipes/between-date-filter/ - SvGrid documentation as markdown. Index of every page: https://svgrid.com/llms.txt -->

# Between-operator filters for date ranges

> Live in [demo 64-filter-between-operator](https://svgrid.com/demos/64-filter-between-operator/).

> Live demo: Filter - between operator - https://svgrid.com/demos/64-filter-between-operator/

## When

"From / to" date range as one filter, not two.

## How

Key API surface:

- `api.setFilter(id, { operator: 'between', value, valueTo })`

See the demo source for the full implementation; this recipe pins the
pattern + the surface so you can copy-paste it confidently. The doc
page that explains the underlying feature in depth is linked from the
[recipes index](https://github.com/sv-grid/sv-grid/blob/main/docs/recipes/index.md).

## See also

- [Demo 64-filter-between-operator source](https://github.com/sv-grid/sv-grid/blob/main/examples/src/demos/64-filter-between-operator.svelte)
- [Demo 64-filter-between-operator prompt sidecar](https://github.com/sv-grid/sv-grid/blob/main/examples/src/demos/prompts/64-filter-between-operator.md) - drop into an LLM context window
- [Recipes index](https://github.com/sv-grid/sv-grid/blob/main/docs/recipes/index.md)

---

SvGrid is the Svelte 5 data grid (`npm install @svgrid/grid`, MIT). This page: https://svgrid.com/docs/recipes/between-date-filter/ . All docs: https://svgrid.com/llms.txt
