Skip to content

Instantly share code, notes, and snippets.

@vyspiansky
Created January 26, 2023 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vyspiansky/ab0d31f619281cbf0932c70b37d19307 to your computer and use it in GitHub Desktop.
Save vyspiansky/ab0d31f619281cbf0932c70b37d19307 to your computer and use it in GitHub Desktop.
Tomorrow in JavaScript
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment