const date = new Date(\'August 19, 2020 23:15:30\'); const event = new Date(); console.log(`event.setDate(date.getDate() + 1));
this code is supposed
.setDate return milliseconds. You want to access the dateInstance instead:
.setDate
const day = new Date('August 19, 2020 23:15:30'), nextDay = new Date(); nextDay.setDate(day.getDate()+1); console.log(nextDay.toString());