Ok, i've got a table of data and i need to grab all records created in this month by the date field which has date in this format "2013-09-26".
So, in my where clause i'm trying the following:
DATE(unix_timestamp(orders.date_issued)) = 'between CURDATE() and CURDATE() - INTERVAL 1 MONTH'
So this isn't working, i'm assuming it's the date conversion i'm trying here? I've tried some different variants on the date conversion but nothing seems to work.
Any help would be really gratefully received!