DateTime includes both date and time data. Unless all the rows in the database have a 0 as the time part and your application also sends 0 as the time part, they'll never be equal.
If your database is MS's SQL Server, I'd suggest you use the DATEDIFF function to compare dates.
DATEDIFF(DAY, date1, date2) = 0
is true if both dates are the same, ignoring the time part of the value.