validar fecha

This commit is contained in:
xXpuma99Xx
2022-01-02 17:56:42 -06:00
parent 661f4985ee
commit 9a982a215f
6 changed files with 54 additions and 14 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ const Status = require(`${dbPath}/Status`);
const Usuario = require(`${dbPath}/Usuario`);
const reporte = async (body) => {
const inicio = validarFecha(body.inicio);
const fin = validarFecha(body.fin);
const inicio = validarFecha(body.inicio, 'fecha de inicio', false);
const fin = validarFecha(body.fin, 'fecha fin', false);
const path = `server/uploads/reporte.csv`;
const data = [];