title: extract the date part from DateTime in C#
body: <p>The line of code <code>DateTime d = DateTime.Today;</code> results in <code>10/12/2011 12:00:00 AM</code>. How can I get only the date part.I need to ignore the time part when I compare two dates. </p>