title: MongoTemplate find by date conversion
body: <p>I am trying to convert the following query:</p>
  
  <pre><code>{ "cd" : { "$lte" : ISODate("2013-06-30T09:12:29Z") , "$gte" : ISODate("2013-06-11T09:12:29Z")}}
  </code></pre>
  
  <p>To use with <strong>MongoTemplate</strong> and <strong>Query</strong>.</p>
  
  <p>At the moment i am doing and approach like:</p>
  
  <pre><code> Query query = new Query();
   query.addCriteria(Criteria.where("cd").lte(request.getTo()).gte(request.getFrom()));
   mongoTemplate.find(query,MyDesiredEntity.class)
  </code></pre>
  
  <p>But the query above returns no results when the first one returns around 15 which it should(request.getTo and request.getFrom are <strong>java.util.Date</strong>).</p>
  
  <p>Is there a way to achieve this with <strong>org.springframework.data.mongodb.core.query.Query</strong></p>