I am trying to get the date portion of a datetime field. I know I can get it with date_format, but that returns a string or \"varchar\" field. How can I convert the result t
Use the DATE function:
SELECT DATE(orders.date_purchased) AS date