SyntaxFix
Write A Post
Hire A Developer
Questions
When comparing only the date of the datatimes, use the Date property. So this should work fine for you
datetime1.Date == datetime2.Date