Add days to Date - Node.js Date

Node.js examples for Date:Day

Description

Add days to Date

Demo Code

Date.prototype.addDays = function (days) {
   days = this.getDate() + days;// ww  w.  j  a  va2 s  . c  om
   return this.setDate(days);
};

Related Tutorials