How to Get Tomorrows Date With JavaScript

To get tomorrow’s date with JavaScript, you simply need to get the current date, and then add one day to it, like this:

const today = new Date()
const tomorrow = new Date(today)

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

tomorrow.toDateString()

Now try console logging out yesterdays date:

console.log(tomorrow.toDateString())

Nice and simple!


Has this been helpful to you?

You can support my work by sharing this article with others, or perhaps buy me a cup of coffee 😊

Kofi

Share & Discuss on