# How to store Database date format is same as to Elastic Index through logstash

**URL:** <https://discuss.elastic.co/t/how-to-store-database-date-format-is-same-as-to-elastic-index-through-logstash/161150>\
**Category:** Logstash\
**Created:** [December 17, 2018, 12:58pm UTC](https://discuss.elastic.co/t/how-to-store-database-date-format-is-same-as-to-elastic-index-through-logstash/161150 "2018-12-17T12:58:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthick\_tgi](https://avatars.discourse-cdn.com/v4/letter/k/898d66/32.png) [@karthick\_tgi](https://discuss.elastic.co/u/karthick_tgi)\
**Post date:** [December 17, 2018, 12:58pm UTC](https://discuss.elastic.co/t/how-to-store-database-date-format-is-same-as-to-elastic-index-through-logstash/161150/1 "2018-12-17T12:58:51Z")

</div>

How to store Database date format in same as to Elastic Index through logstash.  
My Database date format : (YYYY-MM-DD)  
What ever i change the date format it could stored only GMT time zone.  
I changed the timezone like IST GMT the data was stored normally based on what time zone we give with no issues.

Is there any possible to store the datas in given date format in ES index.

---

<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:** [January 14, 2019, 12:58pm UTC](https://discuss.elastic.co/t/how-to-store-database-date-format-is-same-as-to-elastic-index-through-logstash/161150/2 "2019-01-14T12:58:52Z")

</div>

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