It seems I can’t compare 2 date values with time.
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.
So what’s some basic algorithm for comparing 2 dates? I mean generally, I can’t juse use dateTime1.CompareTo(dateTime2). Preferably in pseudocoude. Thanks.
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.
I just need basic algorithm for comparing 2 dates. I believe it must be simple…
The following format should work pretty well: