# Date, change day and month position

**URL:** <https://discuss.elastic.co/t/date-change-day-and-month-position/221606>\
**Category:** Logstash\
**Created:** [March 2, 2020, 1:05am UTC](https://discuss.elastic.co/t/date-change-day-and-month-position/221606 "2020-03-02T01:05:51Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [March 3, 2020, 6:28pm UTC](https://discuss.elastic.co/t/date-change-day-and-month-position/221606/12 "2020-03-03T18:28:39Z")

</div>

The "Time.at(t.to\_f).strftime" assumes that t is a LogStash::Timestamp. You need to use a date filter to parse date (and overwrite it) then the ruby filter should work.

---

_[View the full topic](https://discuss.elastic.co/t/date-change-day-and-month-position/221606)._
