# Date/time field formatting from csv input

**URL:** <https://discuss.elastic.co/t/date-time-field-formatting-from-csv-input/326984>\
**Category:** Logstash\
**Created:** [March 4, 2023, 3:13pm UTC](https://discuss.elastic.co/t/date-time-field-formatting-from-csv-input/326984 "2023-03-04T15:13:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![karlkras](https://avatars.discourse-cdn.com/v4/letter/k/b19c9b/32.png) [@karlkras](https://discuss.elastic.co/u/karlkras)\
**Post date:** [March 4, 2023, 9:19pm UTC](https://discuss.elastic.co/t/date-time-field-formatting-from-csv-input/326984/3 "2023-03-04T21:19:27Z")

</div>

Yep, that's the format I'm talking about.  
I see you answered a similar question a few years back.

> [@Convert epoch time to date](https://discuss.elastic.co/t/convert-epoch-time-to-date/223153):
>
> [Edited] I am using Logstash 7.x version I have log like below where scheduledTime is in epoch long number, {"scheduledTime":1580634058274,"processTime":1580634073293,"mailingType":1,"userId":123} I want it to be indexed to ES in below format through logstash {"scheduledTime":"Wed Mar 11 2020 14:08:11","processTime":1580634073293,"mailingType":1,"userId":123}

Sorry, I'll work on my forum searching chops.

Regards!

---

_[View the full topic](https://discuss.elastic.co/t/date-time-field-formatting-from-csv-input/326984)._
