# Modify date format

**URL:** <https://discuss.elastic.co/t/modify-date-format/140521>\
**Category:** Logstash\
**Created:** [July 18, 2018, 11:14am UTC](https://discuss.elastic.co/t/modify-date-format/140521 "2018-07-18T11:14:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![niraj\_pandey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niraj_pandey/32/44034_2.png) [@niraj\_pandey](https://discuss.elastic.co/u/niraj_pandey)\
**Post date:** [July 18, 2018, 11:14am UTC](https://discuss.elastic.co/t/modify-date-format/140521/1 "2018-07-18T11:14:14Z")

</div>

Hi ,

Is there any way to modify date format on logstash filter file.

I am using the current once

date {  
match =\> ["submit\_time\_unix", "UNIX"]  
target =\> "submit\_time\_unix"  
}

and the o/p is "June 22nd 2016, 01:54:30.000" and but I want it should be "2016-06-22"

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 18, 2018, 11:56am UTC](https://discuss.elastic.co/t/modify-date-format/140521/2 "2018-07-18T11:56:19Z")

</div>

"June 22nd 2016, 01:54:30.000" is how Kibana formats it, and I believe that format is configurable. If you look at the actual document contents you'll see that it's ISO8601.

---

<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 15, 2018, 11:56am UTC](https://discuss.elastic.co/t/modify-date-format/140521/3 "2018-08-15T11:56:26Z")

</div>

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