# Applying global Time filter within a visualization to other dates

**URL:** <https://discuss.elastic.co/t/applying-global-time-filter-within-a-visualization-to-other-dates/273248>\
**Category:** Kibana\
**Created:** [May 18, 2021, 8:00am UTC](https://discuss.elastic.co/t/applying-global-time-filter-within-a-visualization-to-other-dates/273248 "2021-05-18T08:00:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dosant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dosant/32/64489_2.png) [@dosant](https://discuss.elastic.co/u/dosant)\
**Post date:** [May 18, 2021, 12:59pm UTC](https://discuss.elastic.co/t/applying-global-time-filter-within-a-visualization-to-other-dates/273248/2 "2021-05-18T12:59:36Z")

</div>

Hi @Thomas_Pierrot, welcome to the community 👋

You can get current global time range from time filter service in data plugin:

> <https://github.com/elastic/kibana/blob/5c3527d8a63deefd4fc3ef2d4b5e7381f6c34422/src/plugins/data/public/query/timefilter/timefilter.ts#L103>

Then you can use it to build your custom range filter

---

_[View the full topic](https://discuss.elastic.co/t/applying-global-time-filter-within-a-visualization-to-other-dates/273248)._
