title: fetch mongo documents updated within last 30 minutes
body: <p>I want to fetch documents updated within last 30 minutes</p>
  
  <p>each document has updatedAt field of Date type</p>
  
  <p>I am doing the following :</p>
  
  <pre><code>  Model.find({
      updatedAt : { $gte : new Date(Date.now() - (30 * 60000))  } },
    function(err, docs){
       console.log(err); //null
  console.log(docs); //empty array []
    });
  </code></pre>
  
  <p>But i actually i have documents which have updatedAt value within the last 30 minutes by viewing from the mongoose console.</p>
  
  <p>What wrong i am doing ?</p>