title: how to compare two dates in C# Without comparing the time?
body: <p>I want to compare two dates in C# i have tried Toshortdate() but its not working for me i dont know why? I just want to compare the dates not the time.. My code is as below:</p>
  
  <pre><code> Convert.ToDateTime(b.CreatedDate).ToShortDateString() == Convert.ToDateTime(objbreedable.LastBDate).ToShortDateString()
  </code></pre>
  
  <p>Please help me.</p>