Answers.Body: <p>After trying multiple options found an answer:</p>
  <p><a href="https://i.sstatic.net/6sod7.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6sod7.png" alt="enter image description here" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-12T10:26:14.117Z
Answers.LastActivityDate: 2020-10-12T10:26:14.117Z
Answers.UserDisplayName: Alex89
Body: <p>I am trying to query entries in GraphQL by custom DateTime field value.
  It works with the base String value like &quot;&gt;=2020-10-01&quot;,</p>
  <p>However querying between two dates like &quot;['and', '&gt;=2020-10-01', '&lt;2020-11-01']&quot; it gives me an empty result.</p>
  <p>What will be the correct query variable here?</p>
  <p>Thank you</p>
  <p><a href="https://i.sstatic.net/AGkk7.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/AGkk7.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.sstatic.net/cItv7.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/cItv7.png" alt="enter image description here" /></a></p>
  
Tags: <datetime><query><graphql>
Title: GraphQL query entries by DateTime field between two dates
ThreadText: # GraphQL query entries by DateTime field between two dates
  
  (Asked by: username_0 on 2020-10-12)
  
  I am trying to query entries in GraphQL by custom DateTime field value.
  It works with the base String value like ">=2020-10-01",
  
  However querying between two dates like "['and', '>=2020-10-01', '<2020-11-01']" it gives me an empty result.
  
  What will be the correct query variable here?
  
  Thank you
  
  [![enter image description here](https://i.sstatic.net/AGkk7.png)](https://i.sstatic.net/AGkk7.png)
  
  [![enter image description here](https://i.sstatic.net/cItv7.png)](https://i.sstatic.net/cItv7.png)
  
  **Tags:** datetime, query, graphql
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2020-10-12. Score: 3
  
  After trying multiple options found an answer:
  
  [![enter image description here](https://i.sstatic.net/6sod7.png)](https://i.sstatic.net/6sod7.png)
  
  
  ---
  
  