Date only comparison c# [closed]

You are referencing a property called Date, that is a DateTime. You want to compare the property on the DateTime, so do:

bool isequal = CActivity.Instance.SignInOuts[0].Date.Date == signInOut.Date.Date;

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top