# How to change date format in logstash?

**URL:** <https://discuss.elastic.co/t/how-to-change-date-format-in-logstash/257532>\
**Category:** Logstash\
**Created:** [December 3, 2020, 3:22pm UTC](https://discuss.elastic.co/t/how-to-change-date-format-in-logstash/257532 "2020-12-03T15:22:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [December 3, 2020, 4:16pm UTC](https://discuss.elastic.co/t/how-to-change-date-format-in-logstash/257532/2 "2020-12-03T16:16:29Z")

</div>

> [@reillye](#):
>
> Is there a way for me to convert the my date into the format I am expecting?

Use a ruby filter and [strftime](https://discuss.elastic.co/t/date-field-being-converted-to-timestamps/180044/4).

---

_[View the full topic](https://discuss.elastic.co/t/how-to-change-date-format-in-logstash/257532)._
