addDays

Date.prototype.addDays = function(amount) {
  return new Date(this.getFullYear(), this.getMonth(), this.getDate() + amount);
}
Example:
var date = app.selectedDate.addDays(-1);

Description

Adding and subtracting days from Date

Details

Double click on the code to select all.

 

;