Nodejs Week Add addWeeks(w)

Here you can find the source of addWeeks(w)

Method Source Code

Date.prototype.addWeeks = function(w)
{
    this.addDays(w * 7);/*from  w ww  . j ava2s.  c o  m*/
};

Related

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