# Failed to parse date field

**URL:** <https://discuss.elastic.co/t/failed-to-parse-date-field/302812>\
**Category:** Elasticsearch\
**Created:** [April 20, 2022, 12:38pm UTC](https://discuss.elastic.co/t/failed-to-parse-date-field/302812 "2022-04-20T12:38:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krunal](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@Krunal](https://discuss.elastic.co/u/Krunal)\
**Post date:** [April 20, 2022, 12:38pm UTC](https://discuss.elastic.co/t/failed-to-parse-date-field/302812/1 "2022-04-20T12:38:39Z")

</div>

> Blockquote  
> I am having little problem regarding the date. What is the solution to change the date format, if i am having date format like wed 11:32 , fri 4:52, I cant able to do mapping in elasticsearch. So i got this error ..

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

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [April 20, 2022, 8:07pm UTC](https://discuss.elastic.co/t/failed-to-parse-date-field/302812/2 "2022-04-20T20:07:57Z")

</div>

Hi.

You can find the best format for you here.

> **[format | Elasticsearch Guide \[8.1\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html)**

---

<div class="post-metadata">

**Author:** ![Krunal](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@Krunal](https://discuss.elastic.co/u/Krunal)\
**Post date:** [April 22, 2022, 7:03am UTC](https://discuss.elastic.co/t/failed-to-parse-date-field/302812/3 "2022-04-22T07:03:35Z")

</div>

`Hello, Thanks for your quick response. My comapny is using version 7.10, so need to find solution in that version I am thinking tha i will change the data type of the raw data and then i will import it in elastic. `

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [April 22, 2022, 1:37pm UTC](https://discuss.elastic.co/t/failed-to-parse-date-field/302812/4 "2022-04-22T13:37:25Z")

</div>

> [@Krunal](#):
>
> Hello, Thanks for your quick response. My comapny is using version 7.10, so need to find solution in that version I am thinking tha i will change the data type of the raw data and then i will import it in elastic.

Sorry:

> **[format | Elasticsearch Guide \[7.10\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/mapping-date-format.html)**

I think your data is not yet indexed so I would try to activate in the epoch\_millis format or create a pipeline to convert this data to another date format.

---

<div class="post-metadata">

**Author:** ![Krunal](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@Krunal](https://discuss.elastic.co/u/Krunal)\
**Post date:** [April 22, 2022, 1:48pm UTC](https://discuss.elastic.co/t/failed-to-parse-date-field/302812/5 "2022-04-22T13:48:22Z")

</div>

```auto
I have converted in another date format and created the index. It work perfectly. 
Thanks

```

@RabBit_BR

---

<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:** [May 20, 2022, 1:48pm UTC](https://discuss.elastic.co/t/failed-to-parse-date-field/302812/6 "2022-05-20T13:48:53Z")

</div>

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