title: Mongodb query. How find the nearest to current date?
body: <p>I have a collections like this:</p>
  
  <pre><code>{
      "_id" : ObjectId("963fae9d93f4d930c98e269d"),
      "myDate":ISODate("2017-02-05T05:00:00.000Z"),
      "otherData":"blablabla"
  },
  {
      "_id" : ObjectId("963fae9d93f4d930c98e269d"),
      "myDate":ISODate("2017-02-05T14:00:00.000Z"),
      "otherData":"blablabla"
  },
  {
      "_id" : ObjectId("963fae9d93f4d930c98e269d"),
      "myDate":ISODate("2017-03-05T02:00:00.000Z"),
      "otherData":"blablabla"
  },
  {
      "_id" : ObjectId("963fae9d93f4d930c98e269d"),
      "myDate":ISODate("2017-03-05T19:00:00.000Z"),
      "otherData":"blablabla"
  }
  </code></pre>
  
  <p>Given the current date (with minutes and seconds), I want to find the record nearest to the current date (by the "myDate" field).</p>
  
  <p>Thanks</p>