# Time Filter used while creating index pattern

**URL:** https://discuss.elastic.co/t/time-filter-used-while-creating-index-pattern/220985
**Category:** Kibana
**Created:** [February 26, 2020, 9:08am UTC](https://discuss.elastic.co/t/time-filter-used-while-creating-index-pattern/220985 "2020-02-26T09:08:29Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)
#### Post date: [February 26, 2020, 9:08am UTC](https://discuss.elastic.co/t/time-filter-used-while-creating-index-pattern/220985/1 "2020-02-26T09:08:29Z")

</div>

Can we select multiple time filters for filtering our data while creating an index pattern?  
In my data, I have 3-time fields: Grant Date, Status Date, Validity Date.  
I want to filter my data according to Grant and Validity Date.  
How can I do that?

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [February 26, 2020, 10:32am UTC](https://discuss.elastic.co/t/time-filter-used-while-creating-index-pattern/220985/2 "2020-02-26T10:32:37Z")

</div>

Do you want to filter the data of your index patterns in dashboards and visualizations by these fields? You can only connect a single field to the time picker on the top right, but you can add filters on other fields by adding filter pills below the query bar and pinning them.

---

<div class="post-metadata">

### Author: ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)
#### Post date: [February 26, 2020, 10:50am UTC](https://discuss.elastic.co/t/time-filter-used-while-creating-index-pattern/220985/3 "2020-02-26T10:50:48Z")

</div>

Thank You So Much Joe for helping me out. 🙂

How do I give the date values in the filter?  
When I give date value as "Feb 25, 2017 @ 15:26:28.307" to "Feb 26, 2017 @ 16:26:28.307" , it gives following error:  
`Discover: failed to parse date field [Feb 25, 2017 @ 16:26:28.307] with format [strict_date_optional_time||epoch_millis]: [failed to parse date field [Feb 25, 2017 @ 16:26:28.307] with format [strict_date_optional_time||epoch_millis]]`

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [March 9, 2020, 10:19am UTC](https://discuss.elastic.co/t/time-filter-used-while-creating-index-pattern/220985/4 "2020-03-09T10:19:49Z")

</div>

That's a little confusing - you have to specify dates in the format of the mapping of your index. In your case it's either `strict_date_optional_time` or `epoch_millis `. `2017-02-25` or `2017-02-25T16:26:28Z` (be aware of UTC timezone) should both work.

Reference: [https://www.elastic.co/guide/en/elasticsearch/reference/current/date.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/date.html)

---

<div class="post-metadata">

### Author: ![cravinder489](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cravinder489/32/62858_2.png) [@cravinder489](https://discuss.elastic.co/u/cravinder489)
#### Post date: [March 9, 2020, 10:25am UTC](https://discuss.elastic.co/t/time-filter-used-while-creating-index-pattern/220985/5 "2020-03-09T10:25:25Z")

</div>

Thank You Joe  
It helped.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 6, 2020, 10:25am UTC](https://discuss.elastic.co/t/time-filter-used-while-creating-index-pattern/220985/6 "2020-04-06T10:25:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
