I have rows in a table that I need to order by date. Easy enough, use the date datatype to store them, ORDER BY date blah blah.
date
ORDER BY
However, I\
In SQL you could get
SELECT year(DBDate), month(DBDate) FROM dates ORDER BY DBDate