title: Spring data mongodb search for ISO date
body: <p>I am trying to search for date of birth using query</p>
  <pre><code>criteria = Criteria.where(&quot;dob&quot;).lte(new DateTime().toDate());
  </code></pre>
  <p>And spring data mongodb generate below query:</p>
  <blockquote>
  <p>MongoTemplate: find using query:</p>
  <pre><code>{ &quot;dob&quot; : { &quot;$lte&quot; : { &quot;$date&quot; : &quot;2015-05-16T07:55:23.257Z&quot;}}}
  </code></pre>
  <p>fields: null for class: class com.temp.model.User in collection: user</p>
  </blockquote>
  <p>But I did not get any result.</p>
  <p>My dob field in mongodb:</p>
  <pre><code>{&quot;dob&quot; : ISODate(&quot;1991-01-23T00:00:00Z&quot;)}
  </code></pre>
  <p><strong>How I can search for <em>dob</em> in ISODate format ?</strong></p>