Created
December 26, 2021 16:00
-
-
Save aleduca/de4967daf27512da6fd9e513833f2112 to your computer and use it in GitHub Desktop.
Date dateformat int
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
formatar_data = (d) =>{ | |
const date = new Date(d); | |
const formatter = Intl.DateTimeFormat('pt-BR', { | |
timeZone: 'UTC', | |
dateStyle: "short" | |
}); | |
return formatter.format(date); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment