# How to apply new time format of range in kibana's request query when visualizing data

**URL:** <https://discuss.elastic.co/t/how-to-apply-new-time-format-of-range-in-kibanas-request-query-when-visualizing-data/210101>\
**Category:** Kibana\
**Created:** [December 2, 2019, 4:29am UTC](https://discuss.elastic.co/t/how-to-apply-new-time-format-of-range-in-kibanas-request-query-when-visualizing-data/210101 "2019-12-02T04:29:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![myohyun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/myohyun/32/58071_2.png) [@myohyun](https://discuss.elastic.co/u/myohyun)\
**Post date:** [December 2, 2019, 4:29am UTC](https://discuss.elastic.co/t/how-to-apply-new-time-format-of-range-in-kibanas-request-query-when-visualizing-data/210101/1 "2019-12-02T04:29:13Z")

</div>

Hi,  
I have a question about changing time format in range query when visualizing data.

I have a date field 'time local' and its format is "dd/MMM/YYYY:HH:mm:ss Z"  
ex.  
"time\_local": "15/Nov/2019:16:49:53 +0900",

The problem is that  
kibana always use "strict\_date\_optional\_time" time format in range query to search data and  
with this time format my data is not appeared in visualization.

![image](https://us1.discourse-cdn.com/elastic/original/3X/f/e/fe41fcf29e2a8b37d5c927c5e45d296e20a473be.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/8/c8f5fec039eb95efcb77eb77907e90f33e155ec8.png)

My es query with correct date format in range , elasticsearch gave a right answer.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/2/e28de195f257b9e0ca927022ff1c326b2f9ad3ef.png)

Is it possible to change time format in range query in Kibana visualization request?

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![tsgkdt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsgkdt/32/39151_2.png) [@tsgkdt](https://discuss.elastic.co/u/tsgkdt)\
**Post date:** [December 2, 2019, 6:30am UTC](https://discuss.elastic.co/t/how-to-apply-new-time-format-of-range-in-kibanas-request-query-when-visualizing-data/210101/2 "2019-12-02T06:30:07Z")

</div>

I think that you don't need to change the format in range query.

If you change the mapping setting in time\_local from "dd/MMM/YYYY:HH:mm:ss Z" to "dd/MMM/yyyy:HH:mm:ss Z", you can find your expected result.

Here is my configurations and test results.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/5/85866bc996311287c54a0c1c31d7f13bbb446cae.png)

I hope this will help.

---

<div class="post-metadata">

**Author:** ![myohyun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/myohyun/32/58071_2.png) [@myohyun](https://discuss.elastic.co/u/myohyun)\
**Post date:** [December 2, 2019, 7:09am UTC](https://discuss.elastic.co/t/how-to-apply-new-time-format-of-range-in-kibanas-request-query-when-visualizing-data/210101/3 "2019-12-02T07:09:02Z")

</div>

> [@tsgkdt](#):
>
> yyyy

OMG, it works!!  
I really appreciate you!! 😆😆

---

<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:** [December 30, 2019, 7:09am UTC](https://discuss.elastic.co/t/how-to-apply-new-time-format-of-range-in-kibanas-request-query-when-visualizing-data/210101/4 "2019-12-30T07:09:04Z")

</div>

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