Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const fechaDeAyer = () => {
let hoy = new Date();
let DIA_EN_MILISEGUNDOS = 24 * 60 * 60 * 1000;
let ayer = new Date(hoy.getTime() - DIA_EN_MILISEGUNDOS);
return ayer;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment