This commit is contained in:
2021-04-14 18:09:26 -05:00
3 changed files with 17 additions and 4 deletions
+12
View File
@@ -149,6 +149,17 @@ const isObjectEmpty = (obj) => {
return true;
};
const crearDDMMAAAA = (date) => {
const fechaMoment = moment(date);
let ddmmaaaa = '';
if (fechaMoment.isValid())
ddmmaaaa = `${fechaMoment.date()}/${
fechaMoment.month() + 1
}/${fechaMoment.year()}`;
return ddmmaaaa;
};
module.exports = {
validar,
noValido,
@@ -164,4 +175,5 @@ module.exports = {
validarPreTermino,
validarAccesibilidad,
isObjectEmpty,
crearDDMMAAAA,
};