Merge branch 'master' of https://repositorio.acatlan.unam.mx/CIDWA/servicio_social_api
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user