formato fechas

This commit is contained in:
2021-01-21 19:23:26 -06:00
parent 8abff29002
commit 5af1f16f98
2 changed files with 2 additions and 2 deletions
@@ -44,7 +44,7 @@ export default {
methods: {
fecha(date) {
const fecha = moment(date.substr(0, 10));
return `${fecha.year()}/${fecha.month() + 1}/${fecha.date()}`;
return `${fecha.date()}/${fecha.month() + 1}/${fecha.year()}`;
},
},
};
+1 -1
View File
@@ -384,7 +384,7 @@ export default {
fecha(date) {
if (date) {
const fecha = moment(date.substr(0, 10));
return `${fecha.year()}/${fecha.month() + 1}/${fecha.date()}`;
return `${fecha.date()}/${fecha.month() + 1}/${fecha.year()}`;
}
},
},