# Setting custom date format from kibana for index template

**URL:** <https://discuss.elastic.co/t/setting-custom-date-format-from-kibana-for-index-template/272611>\
**Category:** Kibana\
**Created:** [May 10, 2021, 7:37pm UTC](https://discuss.elastic.co/t/setting-custom-date-format-from-kibana-for-index-template/272611 "2021-05-10T19:37:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Russell\_Fulton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russell_fulton/32/62888_2.png) [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Post date:** [May 10, 2021, 7:37pm UTC](https://discuss.elastic.co/t/setting-custom-date-format-from-kibana-for-index-template/272611/1 "2021-05-10T19:37:48Z")

</div>

I there a was to include a date format in an index template mapping using Kibaba?

I can select from the standard ones but I there is no option for entering a custom format. Noe of the standard formats seem to support dd-MM-yyyy

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 10, 2021, 11:07pm UTC](https://discuss.elastic.co/t/setting-custom-date-format-from-kibana-for-index-template/272611/2 "2021-05-10T23:07:22Z")

</div>

> [@Russell\_Fulton](#):
>
> I there a was to include a date format in an index template mapping using Kibaba?

That doesn't make much sense to me sorry.

---

<div class="post-metadata">

**Author:** ![Russell\_Fulton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russell_fulton/32/62888_2.png) [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Post date:** [May 10, 2021, 11:51pm UTC](https://discuss.elastic.co/t/setting-custom-date-format-from-kibana-for-index-template/272611/3 "2021-05-10T23:51:00Z")

</div>

Try again : )

my apologies for the number typos! I normally eyeball things careful! But clearly not this time.

Is there a way to include a custom date format in an index template mapping using Kibaba?

I have dates in the form `dd-mmm-yyyy <time>`. THis does not seem to be covered the standard selection of formats available in Kibana. I know that I can include custom formats if I am setting the mappings using API and I was wondering if I could do the same in Kibana.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 11, 2021, 12:32am UTC](https://discuss.elastic.co/t/setting-custom-date-format-from-kibana-for-index-template/272611/4 "2021-05-11T00:32:17Z")

</div>

If you mean under "Create template", then your best bet would be to use the "Load JSON" button to do that directly.

---

<div class="post-metadata">

**Author:** ![Russell\_Fulton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russell_fulton/32/62888_2.png) [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Post date:** [May 11, 2021, 12:48am UTC](https://discuss.elastic.co/t/setting-custom-date-format-from-kibana-for-index-template/272611/5 "2021-05-11T00:48:54Z")

</div>

yes that is what meant, and that is what I thought might be the case.

In this case I am having to massage the data anyway and converted time to epoch.

Thanks!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 11, 2021, 12:50am UTC](https://discuss.elastic.co/t/setting-custom-date-format-from-kibana-for-index-template/272611/6 "2021-05-11T00:50:37Z")

</div>

It might be worth creating a feature request on GitHub for this as well.

---

<div class="post-metadata">

**Author:** ![Russell\_Fulton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russell_fulton/32/62888_2.png) [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Post date:** [May 11, 2021, 12:54am UTC](https://discuss.elastic.co/t/setting-custom-date-format-from-kibana-for-index-template/272611/7 "2021-05-11T00:54:13Z")

</div>

yes, the ability edit the json as well as upload it would be useful. Same as you can with saved objects -- with the usual provisos ; )

---

<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:** [June 8, 2021, 12:54am UTC](https://discuss.elastic.co/t/setting-custom-date-format-from-kibana-for-index-template/272611/8 "2021-06-08T00:54:30Z")

</div>

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