new date javascript add one day code example Example: js date add 1 day let date = new Date(); // add a day date.setDate(date.getDate() + 1);