# Date is too short

**URL:** https://discuss.elastic.co/t/date-is-too-short/141037
**Category:** Elasticsearch
**Created:** [July 22, 2018, 3:52pm UTC](https://discuss.elastic.co/t/date-is-too-short/141037 "2018-07-22T15:52:01Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 22, 2018, 8:47pm UTC](https://discuss.elastic.co/t/date-is-too-short/141037/2 "2018-07-22T20:47:15Z")

</div>

It's easier for us to help if you keep the question to one thread 🙂

> [@Date Invalid format too short](https://discuss.elastic.co/t/date-invalid-format-too-short/141046):
>
> I have an elasticsearch model with a field starts\_at with the mapping "starts\_at": { "type": "date", "format": "yyyy-MM-dd'T'HH:mm:ssZ" } When I try to enter 2018-07-29T13:00:00Z, I get the error Invalid format: \"2018-07-29\" is too short" Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root\_cause":[{"type":"mapper\_parsing\_exception","reason":"failed to parse [starts\_at]"}],"type":"mapper\_parsing\_exception","reason":"failed…

---

_[View the full topic](https://discuss.elastic.co/t/date-is-too-short/141037)._
