How to compare only Date without Time in DateTime types in Linq to SQL with Entity Framework?

try using the Date property on the DateTime Object…

if(dtOne.Date == dtTwo.Date)
    ....

Leave a Comment