title: Hoe to fetch records which is closed in 1 day in mongoose
body: <p><strong>*How i can get all record who's are closing in one day in mongodb. For example closing date 6th DEC. Can i check it with 5 DEC date in mongo query *</strong></p>
  
  <pre><code>var start=new Date();
  var dat = new Date();
  dat.setDate(dat.getDate() + 7);
  var end=dat;
  var criteria = {
         EndDate: {
              $gte: start,
              $lte: end
         }
   }
  </code></pre>
  
  <p><strong><em>using this condition first i get all the records which are closed within a week from today date</em></strong></p>