# Timestamp : StreamCorruptedException

**URL:** <https://discuss.elastic.co/t/timestamp-streamcorruptedexception/12045>\
**Category:** Elasticsearch\
**Created:** [May 21, 2013, 6:57am UTC](https://discuss.elastic.co/t/timestamp-streamcorruptedexception/12045 "2013-05-21T06:57:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuwar\_sahani\_2](https://avatars.discourse-cdn.com/v4/letter/k/fbc32d/32.png) [@kuwar\_sahani\_2](https://discuss.elastic.co/u/kuwar_sahani_2)\
**Post date:** [May 21, 2013, 6:57am UTC](https://discuss.elastic.co/t/timestamp-streamcorruptedexception/12045/1 "2013-05-21T06:57:31Z")

</div>

Hi

i have and index with the property timestamp  
"timestamp" : {  
"type" : "date",  
"format" : "yyyy-MM-dd hh:mm:ss"  
}

if i try to add time greater than 12 in hh i get a StreamCorruptedException  
:  
"timestamp" : "2013-05-21 13:10:22"

how to solve this?

thanks in advance

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 21, 2013, 7:20am UTC](https://discuss.elastic.co/t/timestamp-streamcorruptedexception/12045/2 "2013-05-21T07:20:04Z")

</div>

Try:  
"timestamp" : {  
"type" : "date",  
"format" : "yyyy-MM-dd HH:mm:ss"  
}  
See: [http://www.elasticsearch.org/guide/reference/mapping/date-format/](http://www.elasticsearch.org/guide/reference/mapping/date-format/)

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 21 mai 2013 à 08:57, kuwar sahani [kuwarsahani@gmail.com](mailto:kuwarsahani@gmail.com) a écrit :

Hi

i have and index with the property timestamp  
"timestamp" : {  
"type" : "date",  
"format" : "yyyy-MM-dd hh:mm:ss"  
}

if i try to add time greater than 12 in hh i get a StreamCorruptedException :  
"timestamp" : "2013-05-21 13:10:22"

how to solve this?

thanks in advance

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:35am UTC](https://discuss.elastic.co/t/timestamp-streamcorruptedexception/12045/3 "2017-07-06T02:35:37Z")

</div>


