title: Node.js dates comparison
body: <p>In Node.js, how do I compare the date with today's date if one of the dates is a string?</p>
  
  <pre><code>var retdate = new Date();
  retdate.setDate(retdate.getDate()-7);
  var mydate = '2016-07-26T09:29:05.000Z'
  </code></pre>
  
  <p>How do I compare 'retdate' and 'mydate' so it returns date older than 7 days? I believe the string needs to be modified? </p>