This seems rather simple but it has been giving me a headache. I have a column in my events table that is called \'date_time\' and it\'s type is datetime.
I need to writ
select * from table WHERE date(date_time) = '2009-03-27' works for me
if you have an unix timestamp you could also do
select * from table WHERE UNIX_TIMESTAMP(date_time) = your_timestamp