# Index Epoch to date time in elasticserarch

**URL:** https://discuss.elastic.co/t/index-epoch-to-date-time-in-elasticserarch/244709
**Category:** Elasticsearch
**Created:** [August 12, 2020, 12:05pm UTC](https://discuss.elastic.co/t/index-epoch-to-date-time-in-elasticserarch/244709 "2020-08-12T12:05:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sana1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sana1/32/46439_2.png) [@sana1](https://discuss.elastic.co/u/sana1)
#### Post date: [August 12, 2020, 12:05pm UTC](https://discuss.elastic.co/t/index-epoch-to-date-time-in-elasticserarch/244709/1 "2020-08-12T12:05:18Z")

</div>

I have a filed in my index with epoch time value as "1,596,041,843.199"

when ever I try to re-index is using date mapping it gives me error "ailed to parse field [field\_name] of type [date] in document with id 'xxxxxxxxxx'. Preview of field's value: '1.59604202052859E9"

reindex  
'''  
PUT index  
{  
"mappings": {  
"properties": {  
"field\_name": {  
"type": "date",  
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch\_millis"  
}  
}  
}  
}  
'''  
'''  
POST \_reindex  
{  
"source": {  
"index": "original-\*"  
},  
"dest": {  
"index": "index"  
}  
}  
'''  
I want to use my filed in human readable date, but no success till now

---

<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: [September 9, 2020, 12:05pm UTC](https://discuss.elastic.co/t/index-epoch-to-date-time-in-elasticserarch/244709/2 "2020-09-09T12:05:29Z")

</div>

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