funcion crear fecha con formato dd-mm-aaaa

This commit is contained in:
Lemuel Marquez
2021-04-12 14:17:09 -05:00
parent 3038de9d4a
commit 6c3f657623
+3 -1
View File
@@ -154,7 +154,9 @@ const crearDDMMAAAA = (date) => {
let ddmmaaaa = '';
if (fechaMoment.isValid())
ddmmaaaa = `${fechaMoment.date()}-${fechaMoment.month()}-${fechaMoment.year()}`;
ddmmaaaa = `${fechaMoment.date()}/${
fechaMoment.month() + 1
}/${fechaMoment.year()}`;
return ddmmaaaa;
};