# Getting exception while storing the date field format as strict\_hour\_minute

**URL:** https://discuss.elastic.co/t/getting-exception-while-storing-the-date-field-format-as-strict-hour-minute/270540
**Category:** Elasticsearch
**Created:** [April 19, 2021, 6:26am UTC](https://discuss.elastic.co/t/getting-exception-while-storing-the-date-field-format-as-strict-hour-minute/270540 "2021-04-19T06:26:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![anjilinga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anjilinga/32/86010_2.png) [@anjilinga](https://discuss.elastic.co/u/anjilinga)
#### Post date: [April 19, 2021, 6:26am UTC](https://discuss.elastic.co/t/getting-exception-while-storing-the-date-field-format-as-strict-hour-minute/270540/1 "2021-04-19T06:26:29Z")

</div>

Hi,  
Created a field with mapping strict\_hour\_minute.  
running transform with group by field as below.  
"PeriodStartDateTime": {  
"date\_histogram": {  
"field": "StartDateTime",  
"fixed\_interval": "15m"  
}  
},after running the transform while saving the period start date time in HH:mm format it is giving error as below in transform.

DateTimeParseException[Text '1618470900000' could not be parsed at index 2];; MapperParsingException[failed to parse field [newtimetestnew] of type [date] in document with id 'TAAwRQAyIhk-5v8CBxjfCPpPYYzQEgAA'. Preview of field's value: '1618470900000']; nested: IllegalArgumentException[failed to parse date field [1618470900000] with format [strict\_hour\_minute]]; nested: DateTimeParseException[Text '1618470900000' could not be parsed at index 2];; java.lang.IllegalArgumentException: failed to parse date field [1618470900000] with format [strict\_hour\_minute]]

can you please suggest how to save date field as HH:mm

---

<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: [May 17, 2021, 6:26am UTC](https://discuss.elastic.co/t/getting-exception-while-storing-the-date-field-format-as-strict-hour-minute/270540/2 "2021-05-17T06:26:30Z")

</div>

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