# Converting String to Date in Kibana

**URL:** <https://discuss.elastic.co/t/converting-string-to-date-in-kibana/278080>\
**Category:** Kibana\
**Created:** [July 7, 2021, 2:27pm UTC](https://discuss.elastic.co/t/converting-string-to-date-in-kibana/278080 "2021-07-07T14:27:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertashok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robertashok/32/90515_2.png) [@robertashok](https://discuss.elastic.co/u/robertashok)\
**Post date:** [July 7, 2021, 2:27pm UTC](https://discuss.elastic.co/t/converting-string-to-date-in-kibana/278080/1 "2021-07-07T14:27:41Z")

</div>

I have the date as YYYY-MM-DD in kibana, I want to convert this one to date, so that i can use it in Visualisation.

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [July 7, 2021, 6:30pm UTC](https://discuss.elastic.co/t/converting-string-to-date-in-kibana/278080/2 "2021-07-07T18:30:04Z")

</div>

Hi,

You can use runtime fields to do your mapping. or scripted fields if you are on a version older than 7.11 of elasticstack.

Here are our es docs - [Runtime fields | Elasticsearch Guide [master] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/master/runtime.html)  
[Getting started with runtime fields, Elastic’s implementation of schema on read | Elastic Blog](https://www.elastic.co/blog/getting-started-with-elasticsearch-runtime-fields)

You can do it using UI in kibana -

 ![Screen Shot 2021-07-07 at 2.27.28 PM](https://us1.discourse-cdn.com/elastic/original/3X/7/9/79270d36764ba66492fd6b483ef073899b627154.jpeg)

Thanks  
Bhavya

---

<div class="post-metadata">

**Author:** ![robertashok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robertashok/32/90515_2.png) [@robertashok](https://discuss.elastic.co/u/robertashok)\
**Post date:** [July 11, 2021, 3:54pm UTC](https://discuss.elastic.co/t/converting-string-to-date-in-kibana/278080/3 "2021-07-11T15:54:43Z")

</div>

Where can i see the output of runtime fields , i am not able to see it, if i create scripted fields and i use it in kibana, i am getting aggregation errors.

---

<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:** [August 8, 2021, 3:55pm UTC](https://discuss.elastic.co/t/converting-string-to-date-in-kibana/278080/4 "2021-08-08T15:55:37Z")

</div>

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