# Query on date issue

**URL:** <https://discuss.elastic.co/t/query-on-date-issue/135433>\
**Category:** Elasticsearch\
**Created:** [June 11, 2018, 8:47pm UTC](https://discuss.elastic.co/t/query-on-date-issue/135433 "2018-06-11T20:47:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Derrick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/derrick/32/49944_2.png) [@Derrick](https://discuss.elastic.co/u/Derrick)\
**Post date:** [June 11, 2018, 8:47pm UTC](https://discuss.elastic.co/t/query-on-date-issue/135433/1 "2018-06-11T20:47:14Z")

</div>

Hi,

I am experiencing an issue when query on date field. when indexing, I use North American/New York timezone, and query it with same timezone, but I still missing some records. anyone knows how to query on date file?

> > > > {  
> > > > "bool": {  
> > > > "should": [{  
> > > > "bool": {  
> > > > "must": [{  
> > > > "range": {  
> > > > "startDate": {  
> > > > "from": "2018-05-30",  
> > > > "to": "2018-05-30",  
> > > > "include\_lower": true,  
> > > > "include\_upper": true,  
> > > > "time\_zone": "America/New\_York",  
> > > > "format": "yyyy-MM-dd",  
> > > > "boost": 1.0  
> > > > }  
> > > > }  
> > > > }],  
> > > > "disable\_coord": false,  
> > > > "adjust\_pure\_negative": true,  
> > > > "boost": 1.0  
> > > > }  
> > > > }],  
> > > > "disable\_coord": false,  
> > > > "adjust\_pure\_negative": true,  
> > > > "boost": 1.0  
> > > > }  
> > > > }

thanks

---

<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:** [July 9, 2018, 8:47pm UTC](https://discuss.elastic.co/t/query-on-date-issue/135433/2 "2018-07-09T20:47:27Z")

</div>

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