# Kibana KQL / Filter: How can I apply the dashboard timerange (From & To) to a different date field in my doc

**URL:** https://discuss.elastic.co/t/kibana-kql-filter-how-can-i-apply-the-dashboard-timerange-from-to-to-a-different-date-field-in-my-doc/371464
**Category:** Kibana
**Created:** [December 4, 2024, 11:56am UTC](https://discuss.elastic.co/t/kibana-kql-filter-how-can-i-apply-the-dashboard-timerange-from-to-to-a-different-date-field-in-my-doc/371464 "2024-12-04T11:56:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bjornbear](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bjornbear](https://discuss.elastic.co/u/bjornbear)
#### Post date: [December 4, 2024, 11:56am UTC](https://discuss.elastic.co/t/kibana-kql-filter-how-can-i-apply-the-dashboard-timerange-from-to-to-a-different-date-field-in-my-doc/371464/1 "2024-12-04T11:56:10Z")

</div>

I have documents that have several fields containing date/time data: I would like to filter those based on the chosen dashboard timerange (to & from).

How can I create a filter that references the From and To date/times?
