Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 4, 2021 02:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save parzibyte/57878fcb5230d429d2a7a2b44124c3be to your computer and use it in GitHub Desktop.
const formateador = new Intl.DateTimeFormat('es-MX', { dateStyle: 'medium', timeStyle: 'medium' });
const formatearFecha = fecha => formateador.format(fecha);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment