# Generate CSV : Date Format

**URL:** <https://discuss.elastic.co/t/generate-csv-date-format/139996>\
**Category:** Kibana\
**Created:** [July 13, 2018, 6:34pm UTC](https://discuss.elastic.co/t/generate-csv-date-format/139996 "2018-07-13T18:34:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaskaj](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@gaskaj](https://discuss.elastic.co/u/gaskaj)\
**Post date:** [July 13, 2018, 6:34pm UTC](https://discuss.elastic.co/t/generate-csv-date-format/139996/1 "2018-07-13T18:34:30Z")

</div>

If we want the raw date format when you generate the CSV how can we get it to stop formatting the viewable July 13th 2018, 14:35:31.000 vs "CreatedDate": "2018-07-13T15:26:29.000+0000"? How can you simply export the raw fields with no translation?

Thank You.  
-Joe

---

<div class="post-metadata">

**Author:** ![gaskaj](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@gaskaj](https://discuss.elastic.co/u/gaskaj)\
**Post date:** [July 15, 2018, 11:48am UTC](https://discuss.elastic.co/t/generate-csv-date-format/139996/2 "2018-07-15T11:48:03Z")

</div>

Found a tool that does not change the data from what was inserted. Would be great if you could configure the export to output raw. Not sure what else is manipulated. Below tool works great.

> **[taraslayshchuk/es2csv](https://github.com/taraslayshchuk/es2csv)**
>
> es2csv - Export from an Elasticsearch into a CSV file

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 17, 2018, 6:43pm UTC](https://discuss.elastic.co/t/generate-csv-date-format/139996/3 "2018-07-17T18:43:22Z")

</div>

Hi Joe, how are you generating your CSV data? Are you using the [Logstash output plugin](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-csv.html)?

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![gaskaj](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@gaskaj](https://discuss.elastic.co/u/gaskaj)\
**Post date:** [July 17, 2018, 6:55pm UTC](https://discuss.elastic.co/t/generate-csv-date-format/139996/4 "2018-07-17T18:55:53Z")

</div>

Was trying to use kibana csv export function from within reporting but it reformatted the dates. Forked the es2csv works fantastic. If you have any issues jus tping me.

---

<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:** [August 14, 2018, 6:57pm UTC](https://discuss.elastic.co/t/generate-csv-date-format/139996/5 "2018-08-14T18:57:44Z")

</div>

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