Here you can find the source of addDays(days)
/**//from www. j a va 2 s. c o m * Add days into object DATE * * @param {number} Number of days added to DATE, can be +/- */ Date.prototype.addDays = function(days) { days = parseInt(days); this.setDate(this.getDate() + (days || 0)); return this; }
Date.prototype.addDays = function(days) { const dat = new Date(this.valueOf()); dat.setDate(dat.getDate() + days); return dat; };
Date.prototype.addDays = function(days) var dat = new Date(this.valueOf()); dat.setDate(dat.getDate() + days); return dat;
Date.prototype.addDays = function(days) var dat = new Date(this.valueOf()); dat.setDate(dat.getDate() + days); return dat; Date.prototype.addMinutes = function(mins) return new Date(this.valueOf() + (mins * 60 * 1000)); ...
Date.prototype.addDays = function(days) var dat = new Date(this.valueOf()); dat.setDate(dat.getDate() + days); return dat;
Date.prototype.addDays = function(days) { this.setDate(this.getDate() + days); return this;
"use strict"; Date.prototype.addDays = function (days) { var d = this.getDate() + days; this.setDate(d); return this; };
'use strict'; Date.prototype.addDays = function(days) { var date = new Date(this.valueOf()); date.setDate(date.getDate() + days); return date;
Date.prototype.addDays = function (days) { days = this.getDate() + days; return this.setDate(days); };
Date.prototype.addDays = function(days){ var r = this.valueOf(); r += 86400000 * days; return new Date(r); };