# Date format In elastic

**URL:** <https://discuss.elastic.co/t/date-format-in-elastic/80844>\
**Category:** Elasticsearch\
**Created:** [March 31, 2017, 4:38pm UTC](https://discuss.elastic.co/t/date-format-in-elastic/80844 "2017-03-31T16:38:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsb](https://avatars.discourse-cdn.com/v4/letter/g/cc9497/32.png) [@gsb](https://discuss.elastic.co/u/gsb)\
**Post date:** [March 31, 2017, 4:38pm UTC](https://discuss.elastic.co/t/date-format-in-elastic/80844/1 "2017-03-31T16:38:41Z")

</div>

I have set up a field mapping in the index with following format  
"date\_field": { "format": "strict\_date\_optional\_time", "ignore\_malformed": true, "type": "date" }

The Index also accepts documents with value for this field as 9.2/10

and all of the following

["9.1/10","9.1.10","9.1","9/1/10","9"]

Is it a valid format for this field ? Is there a way to restrict it to more like a date looking format.

---

<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:** [April 28, 2017, 4:38pm UTC](https://discuss.elastic.co/t/date-format-in-elastic/80844/2 "2017-04-28T16:38:55Z")

</div>

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