Answers for "how to add 1 day in date javascript"

5

js date add 1 day

let date = new Date();
// add a day
date.setDate(date.getDate() + 1);
Posted by: Guest on June-08-2020
9

javascript add day to date

function addDays(date, days) {
  var result = new Date(date);
  result.setDate(result.getDate() + days);
  return result;
}
Posted by: Guest on May-17-2020
1

javascript add 1 day to new date

var date = new Date();
// add 1 day
date.setDate(date.getDate() + 1);
Posted by: Guest on March-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language