I would like to do aggregate calculations based on month for a datetime field.
I am currently using the extra() function to format the date like:
...
Run the following in your MySQL database, to create a forwarding function.
delimiter // create function strftime ( d date, format varchar(255) ) RETURNS varchar(64) LANGUAGE SQL DETERMINISTIC COMMENT 'synonym for date_format' return date_format(d, format) ; // delimiter ;