const today = new Date()
const tomorrow = new Date(today)
tomorrow.setDate(tomorrow.getDate() + 1)
// NOTE: If you also want to reset the time to "tomorrow at 00:00:00",
// you can do so by calling tomorrow.setHours(0,0,0,0).
Created
January 26, 2023 21:05
-
-
Save vyspiansky/ab0d31f619281cbf0932c70b37d19307 to your computer and use it in GitHub Desktop.
Tomorrow in JavaScript
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment