# Problems in visualization/filtering a date field in Discover module

**URL:** <https://discuss.elastic.co/t/problems-in-visualization-filtering-a-date-field-in-discover-module/211530>\
**Category:** Kibana\
**Created:** [December 11, 2019, 10:02pm UTC](https://discuss.elastic.co/t/problems-in-visualization-filtering-a-date-field-in-discover-module/211530 "2019-12-11T22:02:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pablo\_Albertengo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pablo_albertengo/32/47685_2.png) [@Pablo\_Albertengo](https://discuss.elastic.co/u/Pablo_Albertengo)\
**Post date:** [December 11, 2019, 10:02pm UTC](https://discuss.elastic.co/t/problems-in-visualization-filtering-a-date-field-in-discover-module/211530/1 "2019-12-11T22:02:04Z")

</div>

Hi,  
I am having a problem with date fields in the "Discover" module

Specifically I have a field with the following definition:  
"checkIn": {  
"type": "date"  
}

Additionally I have the following settings:  
. Timezone for date formatting "-\> Browser ((GMT-3)  
. Format of checkIn fields set to "DD-MM-YYYY"

The problem is that I have a great discrepancy in the display / filtering of that field. Specifically:

In Table -\> checkIn = 03-09-2020  
In Json -\> checkIn = 2020-03-10  
In filter (in order to match the document)-\> checkIn = 2020-03-09

Can you see the problem?  
How can I solve it?

Thanks in advance,  
Pablo

Kibana version:  
7.4

---

<div class="post-metadata">

**Author:** ![Pablo\_Albertengo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pablo_albertengo/32/47685_2.png) [@Pablo\_Albertengo](https://discuss.elastic.co/u/Pablo_Albertengo)\
**Post date:** [December 12, 2019, 10:21am UTC](https://discuss.elastic.co/t/problems-in-visualization-filtering-a-date-field-in-discover-module/211530/2 "2019-12-12T10:21:24Z")

</div>

One more info ... the query that composes for ElasticSearch has the following form:  
{  
"checkIn": {  
"gte": "2020-03-09",  
"lte": "2020-03-09",  
"time\_zone": "America/Buenos\_Aires"  
}  
}

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [December 16, 2019, 5:12pm UTC](https://discuss.elastic.co/t/problems-in-visualization-filtering-a-date-field-in-discover-module/211530/3 "2019-12-16T17:12:41Z")

</div>

If I understand your question, you've set the "date format" for the `checkIn` field to "DD-MM-YYYY", but you aren't seeing this format used consistently within Kibana? Would you mind providing screen-shots of the specific instances where you're seeing this date format ignored?

---

<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:** [January 13, 2020, 5:12pm UTC](https://discuss.elastic.co/t/problems-in-visualization-filtering-a-date-field-in-discover-module/211530/4 "2020-01-13T17:12:51Z")

</div>

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