Nodejs Week Add addWeeks(value)

Here you can find the source of addWeeks(value)

Method Source Code

Date.prototype.addWeeks = function(value) {
   this.addDays(value * 7);/*from  w  w  w . ja va2 s .  co  m*/

   return this;
};

Related

  1. addWeeks(w)
    Date.prototype.addWeeks = function(w) {
      this.addDays(w * 7);
    };
    Date.prototype.addDays = function(d) {
      this.setDate(this.getDate() + d);
    };
    
  2. addWeeks(w)
    Date.prototype.addWeeks = function(w)
        this.addDays(w * 7);
    };