Created
April 17, 2020 15:04
-
-
Save jakub-g/1a34e14b476660ac162490725b40300a to your computer and use it in GitHub Desktop.
Intl.DateTimeFormat
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 Intl.DateTimeFormat('en-GB', {timeZone: 'Europe/Paris', | |
year: 'numeric', | |
month: 'long', | |
day: 'numeric', | |
hour: 'numeric', | |
minute: 'numeric' | |
}).format(new Date()) | |
// "17 April 2020, 17:03" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment