-
-
Save parzibyte/57d70930e760b40aac1b36f9b9bd8e3d 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
const obtenerFechaFinDeMes = () => { | |
const fechaFin = new Date(); | |
// Iniciar en este año, el siguiente mes, en el día 0 (así que así nos regresamos un día) | |
return new Date(fechaFin.getFullYear(), fechaFin.getMonth() + 1, 0); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment