title: node.js mongodb filter based on date
body: <p>In node.js from mongodb collection, how do I filter documents of a collection based on the <code>date_added</code> field as previous year, previous week and previous month? The <code>date_added</code> field is in <code>ISO Date</code>  Format</p>
  
  <pre><code>{
      "_id" : ObjectId("574e68e5ac9fbac82489b689"),
      "title" : "car",
      "price" : 100,
      "date_added" : ISODate("2016-06-01T04:47:33.025Z"),
  
  }
  </code></pre>