how to get tomorrow date in javascript
snippet in javascript

how to get tomorrow date in javascript

user2822

var currentDate = new Date(new Date().getTime() + 24 * 60 * 60 * 1000);
var day = currentDate.getDate()
var month = currentDate.getMonth() + 1
var year = currentDate.getFullYear()
document.write("<b>" + day + "/" + month + "/" + year + "</b>")

js date of tomorrow

user6040

let today = new Date();
let tomorrow = new Date();

tomorrow.setDate(today.getDate() + 1);

console.log('Today: ' + today);
console.log('Tomorrow: ' + tomorrow);