# How to change the unix timestamp to the format like "YYYY-MM-DD HH:mm:ss"

**URL:** <https://discuss.elastic.co/t/how-to-change-the-unix-timestamp-to-the-format-like-yyyy-mm-dd-hh-mm-ss/43620>\
**Category:** Elasticsearch\
**Created:** [March 7, 2016, 5:16am UTC](https://discuss.elastic.co/t/how-to-change-the-unix-timestamp-to-the-format-like-yyyy-mm-dd-hh-mm-ss/43620 "2016-03-07T05:16:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lizhenmxcz](https://avatars.discourse-cdn.com/v4/letter/l/a88e57/32.png) [@lizhenmxcz](https://discuss.elastic.co/u/lizhenmxcz)\
**Post date:** [March 7, 2016, 5:16am UTC](https://discuss.elastic.co/t/how-to-change-the-unix-timestamp-to-the-format-like-yyyy-mm-dd-hh-mm-ss/43620/1 "2016-03-07T05:16:22Z")

</div>

Hi, I update the time field from unix timestamp format to "YYYY-MM-DD HH:mm:ss" format in the kibana settings, but it is not work, and there is not any error logs. when to discover, there is not result found. After i change mapping "begin\_time": {  
"type": "date",  
"format": "yyyy-MM-dd HH:mm:ss"  
}  
,always not work.  
I use es version 2.1,kibana version 4.3.1

---

<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 5, 2017, 11:10pm UTC](https://discuss.elastic.co/t/how-to-change-the-unix-timestamp-to-the-format-like-yyyy-mm-dd-hh-mm-ss/43620/2 "2017-07-05T23:10:52Z")

</div>


