Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 23, 2023 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/d7a4cf85f0bada6de2c467e9c62a671f to your computer and use it in GitHub Desktop.
Save parzibyte/d7a4cf85f0bada6de2c467e9c62a671f to your computer and use it in GitHub Desktop.
const formateador = new Intl.DateTimeFormat("es-MX", { dateStyle: 'medium', timeStyle: 'medium' });
const milisegundosComoFecha = (milisegundos) => {
return formateador.format(new Date(milisegundos));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment