title: Comparing 2 dates and ignoring milliseconds of difference
body: <p>I have 2 dates, how can I compare these 2 dates and ignoring milliseconds of difference?</p>
  
  <pre><code>DateTime dte1 = (DateTime)entity.secondDate;
  DateTime dte2 = (DateTime)entity.firstDate;
  
  if (DateTime.Compare(dte1, dte2)!=0)
      throw new HttpRequestException(ExceptionMessages.CONCURRENCY_UPDATE);
  </code></pre>
  
  <p>Thanks.</p>