How do I specify to mySQL\'s MONTH() function to return \'08\' instead of 8 in this query?
I\'d like the sort to work datewise. Currently getting results for date l
MONTH() returns an integer, so of course there's no leading zero. You will need to convert it to a string, left-pad the '0' and take the last 2 characters.