How to get tomorrow date in JavaScript

Last updated on Sep 23, 2022 by Suraj Sharma



In this tutorial, you'll learn how to get tomorrow's date using JavaScript Date object.



Get Tomorrow's Date


we can get tomorrow's date by adding 24 hours to the current timestamp, for example


function getTomorrowDate() {
  return new Date(new Date().getTime() + 24*60*60*1000);
}

console.log(getTomorrowDate());


Related Solutions


Rate this post


Suraj Sharma is a Full Stack Software Engineer. He holds a B.Tech degree in Computer Science & Engineering from NIT Rourkela.