# Extract day, month and year from a date field. Changing Timezone

**URL:** <https://discuss.elastic.co/t/extract-day-month-and-year-from-a-date-field-changing-timezone/267646>\
**Category:** Logstash\
**Created:** [March 18, 2021, 11:38am UTC](https://discuss.elastic.co/t/extract-day-month-and-year-from-a-date-field-changing-timezone/267646 "2021-03-18T11:38:17Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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 22, 2021, 4:50pm UTC](https://discuss.elastic.co/t/extract-day-month-and-year-from-a-date-field-changing-timezone/267646/4 "2021-03-22T16:50:54Z")

</div>

> [@Ernesto\_Guerra](#):
>
> Any idea how could I extract that same data from  
> [layers][frame][frame\_frame\_time] field?

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/extract-day-month-and-year-from-a-date-field-changing-timezone/267646)._
