EvaldoMaciel

Add Days

Aug 16th, 2021
1,270
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Date.prototype.addDays = function (days) {
  2.     var date = new Date(this.valueOf());
  3.     date.setDate(date.getDate() + days);
  4.     return date;
  5. }
RAW Paste Data