# Relative time is not working with kibana

**URL:** <https://discuss.elastic.co/t/relative-time-is-not-working-with-kibana/160993>\
**Category:** Kibana\
**Created:** [December 15, 2018, 8:22am UTC](https://discuss.elastic.co/t/relative-time-is-not-working-with-kibana/160993 "2018-12-15T08:22:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkrishnanp](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jkrishnanp](https://discuss.elastic.co/u/jkrishnanp)\
**Post date:** [December 15, 2018, 8:22am UTC](https://discuss.elastic.co/t/relative-time-is-not-working-with-kibana/160993/1 "2018-12-15T08:22:17Z")

</div>

Hello,

can anybody help with issues of unable to use the relative time in kibana ?  
when I use [now-20m TO now] or similar queries it is not giving any results.

Below the field settings.

"created": {

"type": "date",

"format": "strict\_date\_optional\_time||epoch\_millis"

Thanks  
jay

---

<div class="post-metadata">

**Author:** ![bryan\_stuhlsatz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bryan_stuhlsatz/32/49123_2.png) [@bryan\_stuhlsatz](https://discuss.elastic.co/u/bryan_stuhlsatz)\
**Post date:** [December 16, 2018, 5:02am UTC](https://discuss.elastic.co/t/relative-time-is-not-working-with-kibana/160993/2 "2018-12-16T05:02:32Z")

</div>

If you query the \_mapping of the index, does your field show date format?

If you view the kibana index pattern, and view the field, does it also show date? If not, did you refresh the index pattern if you happened to change it?

When you created the kibana index pattern, you chose that field to use as your time filter field? It will show a clock symbol next to this field

---

<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:** [January 13, 2019, 5:02am UTC](https://discuss.elastic.co/t/relative-time-is-not-working-with-kibana/160993/3 "2019-01-13T05:02:33Z")

</div>

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