title: How to compare dates in c#
body: <p>I have two dates. One date is input and other is <code>DateTime.Now</code>. I have them in <code>mm/dd/yyyy</code> format, it can even be m/d/yy format also. Both dates are nullable i.e, datatype is <code>DateTime?</code>, since I can pass null also as input. Now I want to compare the two dates only with <code>mm/dd/yyyy</code> or <code>m/d/yy</code> format.</p>