# Csv date automatically converts to timestamp

**URL:** <https://discuss.elastic.co/t/csv-date-automatically-converts-to-timestamp/147108>\
**Category:** Logstash\
**Created:** [September 3, 2018, 6:06pm UTC](https://discuss.elastic.co/t/csv-date-automatically-converts-to-timestamp/147108 "2018-09-03T18:06:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Divit\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divit_sharma/32/32348_2.png) [@Divit\_Sharma](https://discuss.elastic.co/u/Divit_Sharma)\
**Post date:** [September 3, 2018, 6:06pm UTC](https://discuss.elastic.co/t/csv-date-automatically-converts-to-timestamp/147108/1 "2018-09-03T18:06:55Z")

</div>

When parsing the date field from csv file it automatically converts to date time. I just want the date without any timestamp. How to write the code in logstash ?

One solution is to edit the field in kibana index as per your choice but I dont like that. There is date filter also but that also gives the timestamp and the timezone. Any help would be appreciated.

---

<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:** [October 1, 2018, 6:07pm UTC](https://discuss.elastic.co/t/csv-date-automatically-converts-to-timestamp/147108/2 "2018-10-01T18:07:07Z")

</div>

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