# How to use Date Range filter in Kibana?

**URL:** https://discuss.elastic.co/t/how-to-use-date-range-filter-in-kibana/194751
**Category:** Kibana
**Created:** [August 11, 2019, 4:05pm UTC](https://discuss.elastic.co/t/how-to-use-date-range-filter-in-kibana/194751 "2019-08-11T16:05:13Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [August 11, 2019, 11:01pm UTC](https://discuss.elastic.co/t/how-to-use-date-range-filter-in-kibana/194751/2 "2019-08-11T23:01:44Z")

</div>

Hi Sujata and thanks for trying Kibana.

Curious what version of Kibana are you using?

I suspect you are getting the error `[strict_date_optional_time||epoch_millis]:`

1st you can apply a date filter by just using the Date Picker over near the top right... and click on Absolute and pick a date range.

 ![03%20PM](https://us1.discourse-cdn.com/elastic/original/3X/2/a/2afde3e0f60fa06194355f2bf234533fe3b98a8c.png)

Or if you want to use the `Add Filter` on the left hand side, the date needs to be in ISO Format (i.e. same as your JSON above) or MilliSeconds from the epoch, perhaps the docs should link to [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/date.html) instead.

 ![24%20PM](https://us1.discourse-cdn.com/elastic/original/3X/c/2/c2e3fe6bee6678620a96c219d1c06e84c97ecc2e.png)

What the `strict_date_optional_time` means is the Date is mandatory but the Time is optional

So valid formats would be

Date and Time  
2019-08-11T14:00:00.000Z

or Date Only  
2019-08-11

One word of caution, your date filter should be a subset of the Date Picker time range in the top right, if you date filter that is outside the time in the Date Picker you will get no results... in essence they are "ANDed" . If you clink on the `Inspect` link you will be the resulting request.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-use-date-range-filter-in-kibana/194751)._
