Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 10, 2020 05:38
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/d9188a26292db3d5ac91690e00ea1cc6 to your computer and use it in GitHub Desktop.
Save parzibyte/d9188a26292db3d5ac91690e00ea1cc6 to your computer and use it in GitHub Desktop.
const fechaComoCadena = "2020-03-09 23:37:22"; // día lunes
const numeroDia = new Date(fechaComoCadena).getDay();
console.log("Número de día de la semana: ", numeroDia);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment