Skip to content

Instantly share code, notes, and snippets.

@renan
Created June 14, 2020 16:11
Show Gist options
  • Save renan/6a84136827ec02656b161fb56385aa33 to your computer and use it in GitHub Desktop.
Save renan/6a84136827ec02656b161fb56385aa33 to your computer and use it in GitHub Desktop.
const date = new Date(Date.UTC(2020, 04, 14, 3, 0, 0));
const options = { month: "long", day: "numeric" };
console.log(new Intl.DateTimeFormat('en-US', options).format(date));
console.log(new Intl.DateTimeFormat('fr-FR', options).format(date));
console.log(new Intl.DateTimeFormat('it-IT', options).format(date));
console.log(new Intl.DateTimeFormat('nl-NL', options).format(date));
@renan
Copy link
Author

renan commented Jun 14, 2020

"May 14"
"14 mai"
"14 maggio"
"14 mei"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment