# Update \_timestamp to date in ES 2.4.0

**URL:** https://discuss.elastic.co/t/update--timestamp-to-date-in-es-2-4-0/72600
**Category:** Elasticsearch
**Created:** [January 24, 2017, 9:34am UTC](https://discuss.elastic.co/t/update--timestamp-to-date-in-es-2-4-0/72600 "2017-01-24T09:34:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![TTNarendran](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@TTNarendran](https://discuss.elastic.co/u/TTNarendran)
#### Post date: [January 24, 2017, 9:34am UTC](https://discuss.elastic.co/t/update--timestamp-to-date-in-es-2-4-0/72600/1 "2017-01-24T09:34:23Z")

</div>

Hi Team,  
Please find the mapping

{  
"products": {  
"dynamic\_templates": [  
{  
"template\_default": {  
"mapping": {  
"fields": {  
"raw": {  
"type": "string",  
"index": "not\_analyzed"  
}  
}  
},  
"match": "\*"  
}  
}  
],  
"\_timestamp": {  
"enabled": true,  
"store": true  
}

Need to change the \_timestamp field to date kindly help me.

---

<div class="post-metadata">

### Author: ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)
#### Post date: [January 24, 2017, 9:38am UTC](https://discuss.elastic.co/t/update--timestamp-to-date-in-es-2-4-0/72600/2 "2017-01-24T09:38:54Z")

</div>

Have you tried the `date` mappings???

---

<div class="post-metadata">

### Author: ![TTNarendran](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@TTNarendran](https://discuss.elastic.co/u/TTNarendran)
#### Post date: [January 24, 2017, 9:40am UTC](https://discuss.elastic.co/t/update--timestamp-to-date-in-es-2-4-0/72600/3 "2017-01-24T09:40:32Z")

</div>

"\_timestamp": {  
"enabled": true,  
"store": true  
}

instead of \_timestamp , date should be used.Please confirm

"date": {  
"enabled": true,  
"store": true  
}

---

<div class="post-metadata">

### Author: ![TTNarendran](https://avatars.discourse-cdn.com/v4/letter/t/59ef9b/32.png) [@TTNarendran](https://discuss.elastic.co/u/TTNarendran)
#### Post date: [January 24, 2017, 9:47am UTC](https://discuss.elastic.co/t/update--timestamp-to-date-in-es-2-4-0/72600/5 "2017-01-24T09:47:42Z")

</div>

whether format is mandatory

---

<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: [February 21, 2017, 9:47am UTC](https://discuss.elastic.co/t/update--timestamp-to-date-in-es-2-4-0/72600/6 "2017-02-21T09:47:49Z")

</div>

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