sequelize type date code example
Example 1: DataTypes Time sequelize
....
hour: {
type: DataTypes.TIME,
defaultValue: '00:00:00',
field: 'hour'
},
.....
Example 2: sequelize date format
function getDateWithoutTime(date) {
return require('moment')(date).format('YYYY-MM-DD');
}