set @input_date= '2009-08-11 00:00:00'; SELECT * FROM TableName WHERE dateTimeColumnName BETWEEN DATE(@input_date) AND CURDATE();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)