title: Mongo ISODate query in Java
body: <p>I have a mongo query to be executed :</p>
  
  <pre><code>query = { "dateField" : { "$gte" : ISODate('2011-11-10T07:45:32.962Z')  } }
  </code></pre>
  
  <p>When I do a <code>db.Collection.find(query)</code> on the mongo shell, I am able to retrieve the results.</p>
  
  <p>How could I query this using Java ? I tried constructing a String based on the Date parameter.
  But in the process of building the String, it eventually gets passed as <code>"ISODate('2011-11-10T07:45:32.962Z')"</code> instead of <code>ISODate('2011-11-10T07:45:32.962Z')</code> (without the surrounding quotes).</p>
  
  <p>What would be the best way to construct this query using the Java API ?</p>
  
  <p>Thanks !</p>