# Conversion of date field from string to date format

**URL:** <https://discuss.elastic.co/t/conversion-of-date-field-from-string-to-date-format/174282>\
**Category:** Elasticsearch\
**Created:** [March 28, 2019, 9:26am UTC](https://discuss.elastic.co/t/conversion-of-date-field-from-string-to-date-format/174282 "2019-03-28T09:26:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swati123](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@Swati123](https://discuss.elastic.co/u/Swati123)\
**Post date:** [March 28, 2019, 9:26am UTC](https://discuss.elastic.co/t/conversion-of-date-field-from-string-to-date-format/174282/1 "2019-03-28T09:26:40Z")

</div>

Hi All,

I want to convert one date field which is of string to date type.  
I am trying the same with the convert processor available but it will throw error as  
"date format is not supported" and from the document as well I checked the same that date conversion is not allowed.

Can someone suggest how to perform this task.

I want my date field datatype as date in the index created.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 28, 2019, 10:22am UTC](https://discuss.elastic.co/t/conversion-of-date-field-from-string-to-date-format/174282/2 "2019-03-28T10:22:55Z")

</div>

May be this? [https://www.elastic.co/guide/en/elasticsearch/reference/6.7/date-processor.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/date-processor.html)

---

<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:** [April 25, 2019, 10:23am UTC](https://discuss.elastic.co/t/conversion-of-date-field-from-string-to-date-format/174282/3 "2019-04-25T10:23:04Z")

</div>

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