# How do I handle the dates properly

**URL:** <https://discuss.elastic.co/t/how-do-i-handle-the-dates-properly/36535>\
**Category:** Logstash\
**Created:** [December 7, 2015, 1:48pm UTC](https://discuss.elastic.co/t/how-do-i-handle-the-dates-properly/36535 "2015-12-07T13:48:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjdepaul](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jjdepaul](https://discuss.elastic.co/u/jjdepaul)\
**Post date:** [December 7, 2015, 1:48pm UTC](https://discuss.elastic.co/t/how-do-i-handle-the-dates-properly/36535/1 "2015-12-07T13:48:04Z")

</div>

We have transactions rolling in from different logs in different timestamp formats.

Would like the users to have the ability in Kibana to display the timestamps in their local TZ - what's the proper way of handling the data - should we convert all of the input dates into UTC?

Is there an example available on how to convert dates from one format to another, plz?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [December 7, 2015, 2:19pm UTC](https://discuss.elastic.co/t/how-do-i-handle-the-dates-properly/36535/2 "2015-12-07T14:19:48Z")

</div>

The date filter will convert the input timestamp to UTC which Kibana will adapt to the browser's timezone. However, except for the `@timestamp` field which is mapped as a timestamp by default I'd assume that you'd have to tell ES (typically via an index template) that all your timestamp fields should be mapped as such.

---

<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:** [July 6, 2017, 5:19am UTC](https://discuss.elastic.co/t/how-do-i-handle-the-dates-properly/36535/3 "2017-07-06T05:19:43Z")

</div>


