# So much pain on ES, query on date returns wrong results

**URL:** <https://discuss.elastic.co/t/so-much-pain-on-es-query-on-date-returns-wrong-results/120215>\
**Category:** Elasticsearch\
**Created:** [February 16, 2018, 4:03pm UTC](https://discuss.elastic.co/t/so-much-pain-on-es-query-on-date-returns-wrong-results/120215 "2018-02-16T16:03:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 16, 2018, 4:53pm UTC](https://discuss.elastic.co/t/so-much-pain-on-es-query-on-date-returns-wrong-results/120215/2 "2018-02-16T16:53:57Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

Please edit your post.

Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

---

_[View the full topic](https://discuss.elastic.co/t/so-much-pain-on-es-query-on-date-returns-wrong-results/120215)._
