Dates are stored in DB as such: \"2011-05-26 11:00:00\" in a datetime field. I\'d like to find all rows where the date is greater than the first of this month, ie: 2011-05-0
$firstDayOfMonth = date( 'Y-m-d H:i:s', mktime(0,0,0,date('n'),1,date('Y')); $query = "SELECT * FROM `table` WHERE `date` >= '$firstDayOfMonth'";