You can't use LIKE with any data type other than text. You can only use things like =, < and > for dates. In this situation you have two choices:

1. Use a database function to remove the time from the date/time column value.
2. Use two date parameters a day apart.

The first option would look something like this:
SQL Code:
  1. WHERE DateFunction(MyDateTimeColumn) = @MyDateParameter
There is no actual DateFunction function. You'd have to check the documentation for your database to see if a function that does that exists.

Here's an example of the second option to get all records with yesterday's date:
csharp Code:
  1. myCommand.CommandText = "SELECT * FROM MyTable WHERE MyDateTimeColumn >= @StartDate AND MyDateTimeColumn < @EndDate";
  2. myCommand.Parameters.AddWithValue("@StartDate", DateTime.Today.AddDays(-1))
  3. myCommand.Parameters.AddWithValue("@EndDate", DateTime.Today)
You could probably also use BETWEEN but I can never remember which limits are inclusive and which are exclusive.