title: Mongoose query date time between
body: <p>Hi pls help me to solve this issue</p>
  
  <p>I need to query data on date time between on Mongoose
  2016-09-25T00:00:10.000+07:00 to 2016-09-25T01:00:10.000+07:00</p>
  
  <p>on robomongo i use this query it's working find</p>
  
  <pre><code>db.getCollection('positions').find({unit_id:"863835025684908",
  utc_ts : {
      $gte: ISODate("2016-09-25T00:00:10.000+07:00"),
      $lt:  ISODate("2016-09-25T01:00:10.000+07:00")  
      } 
  })
  </code></pre>
  
  <p>I got result</p>
  
  <pre><code>{
  "_id" : ObjectId("57e6bd10fa10a661c4145870"),
  "updated_at" : ISODate("2016-09-25T00:51:12.673+07:00"),
  "created_at" : ISODate("2016-09-25T00:51:12.673+07:00"),
  "unit_id" : "863835025684908",
  "utc_ts" : ISODate("2016-09-25T00:51:10.000+07:00"),
  "recv_utc_ts" : ISODate("2016-09-25T00:51:12.000+07:00"),
  "lat" : 14.127961,
  "lon" : 100.621365
  }
  </code></pre>
  
  <p>But when I query on mongoose I use this</p>
  
  <pre><code>var startDate = moment(req.params.startTime).add('hours',7); //req.params.startTime = 2016-09-25 00:00:00
  var endDate   = moment(req.params.endTime).add('hours',7); //req.params.endTime = 2016-09-25 01:00:00
  
  //Find 
  Positions.find({
      unit_id: req.params.unit_id,
      utc_ts: {
          $gt:  new Date(startDate).toISOString(),
          $lt:  new Date(endDate).toISOString()
      }
  }, function(err, positions) {
      if (err) {
          return err
      }
      else {
          //console.log(positions);
          res.json(positions);
      }
  });
  </code></pre>
  
  <p>I see mongoose debug show </p>
  
  <pre><code>Mongoose: positions.find({ utc_ts: { '$gt': new Date("Sat, 24 Sep 2016 00:51:10 GMT"), '$lt': new Date("Sat, 24 Sep 2016 01:08:36 GMT") }, unit_id: '863835025684908' }, { fields: undefined })
  </code></pre>
  
  <p>Then I got empty array from query</p>