title: Why in my case are $gte and $lte not working in mongoDB
body: <p>I 've got the following document.</p>
  
  <pre><code>{ 
     "_id" : ObjectId("5d0e4232ccfb3ee9ac72a64d"), 
     "arraydatumobject" : {
         "datum" : ISODate("2010-01-02T00:00:00.000+0000")
     }
  }
  </code></pre>
  
  <p>when i try to find the date with either $gte or $lte or even both i cant find the document. </p>
  
  <p>so something like this: </p>
  
  <pre><code>db.getCollection("test").find(
     {
         arraydatumobject : { $elemMatch:{ datum :  {$gte : new ISODate("2008-01-02"), $lte : new ISODate("2011-01-02")}}}
     }
  )
  </code></pre>
  
  <p>or this</p>
  
  <pre><code>db.getCollection("test").find(
      {
          arraydatumobject : {datum :  {$gte : new ISODate("2008-01-02"), $lte : new ISODate("2011-01-02")}}
      }
  )
  
  </code></pre>
  
  <p>gets me nothing.</p>
  
  <p>But when i use the following i do get a result.</p>
  
  <pre><code>db.getCollection("test").find(
      {
          arraydatumobject : {datum : new ISODate("2010-01-02")}
      }
  )
  </code></pre>
  
  <p>i'm getting the document that i'm searching for...</p>
  
  <p>What am i missing here?</p>