title: How do I query for dates in Spring Data MongoDB repository?
body: <p>My domain object -</p>
  
  <pre><code>Person{
      String name;
      Date born;
  }
  </code></pre>
  
  <p>and I have a PersonRepository</p>
  
  <pre><code>PersonRepository{
      @Query(value="{'born': {$gt: new Date(?0)} }")
      findPerson(Date bornAfter);
  }
  </code></pre>
  
  <p>I'm trying to fetch all Persons born after a certain date. That doesn't work though. What am I missing? The date-format for 'born' in mongodb console looks like</p>
  
  <pre><code>ISODate("2011-11-16T09:46:33.750Z")
  </code></pre>
  
  <p>I tried to look for a unit/integration test for this in data-jpa source. Couldn't find any. Can someone point me to it?</p>