-
-
Save parzibyte/8e40b8f0fef05fb491ceab4e8db0e4a1 to your computer and use it in GitHub Desktop.
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
// https://parzibyte.me/blog | |
const formateador = new Intl.DateTimeFormat('es-MX', { dateStyle: 'medium', timeStyle: 'medium' }); | |
const fecha = new Date(); | |
const fechaFormateada = formateador.format(fecha); | |
console.log("La fecha formateada es:\n" + fechaFormateada); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment