Node.js examples for Date:Compare
Compare two date to see which one is older
Date.prototype.olderThan = function(minutes) { var now = new Date(); return now.getTime() - this.getTime() > minutes*60*1000 };