title: Comparing date time
body: <p>It seems I can't compare 2 date values with time.</p>
  
  <p>When I compare just date part - year, month and day - everything works fine. But when I add comparing times everything breaks down and not even month fits.</p>
  
  <p>So what's some basic algorithm for comparing 2 dates? I mean generally, I can't juse use <code>dateTime1.CompareTo(dateTime2)</code>. Preferably in pseudocoude. Thanks.</p>
  
  <p>Edit: Now I found out that it only compares with last comparision. So if last is day comparing it is compared by days and doesn't take into account year or month.</p>
  
  <p>I just need basic algorithm for comparing 2 dates. I believe it must be simple...</p>