get the next day in javascript code example
Example 1: js date of tomorrow
let today = new Date();
let tomorrow = new Date();
tomorrow.setDate(today.getDate() + 1);
console.log('Today: ' + today);
console.log('Tomorrow: ' + tomorrow);
Example 2: next day javascript
var tomorrow = new Date();
tomorrow.setDate(new Date().getDate()+1);
// Increase the date By 1(day)