type: DataTypes.DATE,
get: function() {
// 'this' allows you to access attributes of the instance
- return moment(this.getDataValue('startDate')).format("DD-MM-YYYY").toString();
+ return moment(this.getDataValue('startDate')).format("DD-MM-YYYY");
}
},
endDate: {
type: DataTypes.DATE,
get: function() {
// 'this' allows you to access attributes of the instance
- return moment(this.getDataValue('endDate')).format("DD-MM-YYYY").toString();
+ return moment(this.getDataValue('endDate')).format("DD-MM-YYYY");
}
},
status: {
type: DataTypes.DATE,
get: function() {
// 'this' allows you to access attributes of the instance
- return moment(this.getDataValue('createdAt')).format("DD-MM-YYYY").toString();
+ return moment(this.getDataValue('createdAt')).format("DD-MM-YYYY");
}
},
}, {