E
elziko
Hi I have two date times that I belive to be equal. However, when I do a
comparison I find that date1 is less than date2...
Console.WriteLine(date1.ToString("dd/MM/yyyy HH:mm:fffffff") + " - " +
date2.ToString("dd/MM/yyyy HH:mm:fffffff"))
.... which ouputs: 12/11/2003 14:23:4370000 - 12/11/2003 14:23:4370000 in the
console window.... this is as much info as DateTime can handle right? So we
know that they are equal?? Then I try the actual comparison...
Console.WriteLine(DateTime.Compare(date1, date2))
....which ouputs -1. Although it should output 0. Whats going on here?
comparison I find that date1 is less than date2...
Console.WriteLine(date1.ToString("dd/MM/yyyy HH:mm:fffffff") + " - " +
date2.ToString("dd/MM/yyyy HH:mm:fffffff"))
.... which ouputs: 12/11/2003 14:23:4370000 - 12/11/2003 14:23:4370000 in the
console window.... this is as much info as DateTime can handle right? So we
know that they are equal?? Then I try the actual comparison...
Console.WriteLine(DateTime.Compare(date1, date2))
....which ouputs -1. Although it should output 0. Whats going on here?