Skip to content

Instantly share code, notes, and snippets.

@lucasbastianik
Last active April 23, 2020 12:27
Show Gist options
  • Save lucasbastianik/dbf5f658c33f537ffbfc55f56c4fd140 to your computer and use it in GitHub Desktop.
Save lucasbastianik/dbf5f658c33f537ffbfc55f56c4fd140 to your computer and use it in GitHub Desktop.
ECMAScript i18n API - Date Format without Timezone
return new Intl.DateTimeFormat("pt-BR", {
timeZone: "UTC",
}).format(new Date("2020-01-01"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment