Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

get month and year from date in mysql sequelize

model.findAll({attributes: [[ sequelize.fn('YEAR', sequelize.col('created_at')), 'data']] })
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #month #year #date #mysql #sequelize
ADD COMMENT
Topic
Name
3+5 =