Created
August 9, 2023 16:01
-
-
Save AndreKR/47f266279ee178561c843f187179e8a0 to your computer and use it in GitHub Desktop.
Find current date in timezone in Javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Date().toLocaleDateString('sv', { timeZone: 'Europe/Berlin' }) // sv = ISO format |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment