I had a problem with this before.
It is best to create a start and end date, and then use the BETWEEN function.
So something like this:
$start_date = "2009-01-01 00:00:00";
$end_date = "2009-01-01 23:59:59";
$sql = "SELECT * FROM table WHERE date BETWEEN '$start_date' AND '$end_date' AND id = 'x';
, , strtotime - , ()
, :)