The "best" way ever to compare two dates...
The Weird and The Wonderful
2
Posts
2
Posters
0
Views
1
Watching
-
I just fell off my chair when I reviewed some old code C# of a colleague :laugh:
DateTime dt1;
DateTime dt2;if (dt1.ToString("s").CompareTo(dt2.ToString("s")) < 0)
{
//...
}Nothing else to mention...
-
I just fell off my chair when I reviewed some old code C# of a colleague :laugh:
DateTime dt1;
DateTime dt2;if (dt1.ToString("s").CompareTo(dt2.ToString("s")) < 0)
{
//...
}Nothing else to mention...