Nodejs Utililty Methods Week Add

List of utility methods to do Week Add

Description

The list of methods to do Week Add are organized into topic(s).

Method

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