# Kibana search filter showing parser errors on date filter. Error:failed to create query: failed to parse date field \[2021-02-04T00:00:00.000Z\] with format \[yyyyMMdd\]: \[failed to parse date field \[2021-02-04T00:00:00.000Z\] with format \[yyyyMMdd\]\]

**URL:** <https://discuss.elastic.co/t/kibana-search-filter-showing-parser-errors-on-date-filter-error-failed-to-create-query-failed-to-parse-date-field-2021-02-04t0000-000z-with-format-yyyymmdd-failed-to-parse-date-field-2021-02-04t0000-000z-with-format-yyyymmdd/265868>\
**Category:** Kibana\
**Tags:** datastreams\
**Created:** [March 1, 2021, 8:51pm UTC](https://discuss.elastic.co/t/kibana-search-filter-showing-parser-errors-on-date-filter-error-failed-to-create-query-failed-to-parse-date-field-2021-02-04t0000-000z-with-format-yyyymmdd-failed-to-parse-date-field-2021-02-04t0000-000z-with-format-yyyymmdd/265868 "2021-03-01T20:51:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbandasha](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@gbandasha](https://discuss.elastic.co/u/gbandasha)\
**Post date:** [March 1, 2021, 8:51pm UTC](https://discuss.elastic.co/t/kibana-search-filter-showing-parser-errors-on-date-filter-error-failed-to-create-query-failed-to-parse-date-field-2021-02-04t0000-000z-with-format-yyyymmdd-failed-to-parse-date-field-2021-02-04t0000-000z-with-format-yyyymmdd/265868/1 "2021-03-01T20:51:53Z")

</div>

I have set up my Index template in elastic and the transaction\_date column is carrying the format as 'yyyyMMDD' but when I try to add the filter on that filter by click on the plus icon next to the column name it throws the below error.

failed to create query: failed to parse date field [2021-02-04T00:00:00.000Z] with format [yyyyMMdd]: [failed to parse date field [2021-02-04T00:00:00.000Z] with format [yyyyMMdd]]

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/d/5de0faa604616f3cf05178cfcee7e2ef93f91193.png)

![image](https://us1.discourse-cdn.com/elastic/original/3X/f/f/ff805667bfd8b021c6eade4b488b12d385ce1442.png)

---

<div class="post-metadata">

**Author:** ![afharo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/afharo/32/75202_2.png) [@afharo](https://discuss.elastic.co/u/afharo)\
**Post date:** [March 3, 2021, 11:04am UTC](https://discuss.elastic.co/t/kibana-search-filter-showing-parser-errors-on-date-filter-error-failed-to-create-query-failed-to-parse-date-field-2021-02-04t0000-000z-with-format-yyyymmdd-failed-to-parse-date-field-2021-02-04t0000-000z-with-format-yyyymmdd/265868/2 "2021-03-03T11:04:53Z")

</div>

Hi @gbandasha,

thank you for sharing the issue! It looks like a bug to me. I've created the issue [Filters should apply the original date from `_source` instead of the formatted one · Issue #93401 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/93401) so our team can look at it and try to solve it.

Please, feel free to follow it for more updates on the progress and if any questions arise.

---

<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:** [March 31, 2021, 11:05am UTC](https://discuss.elastic.co/t/kibana-search-filter-showing-parser-errors-on-date-filter-error-failed-to-create-query-failed-to-parse-date-field-2021-02-04t0000-000z-with-format-yyyymmdd-failed-to-parse-date-field-2021-02-04t0000-000z-with-format-yyyymmdd/265868/3 "2021-03-31T11:05:42Z")

</div>

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