I think this way will do what he need ..
if (DateTime.Compare(date1, date2) > 0) Console.Write("date1 > date2");
if (DateTime.Compare(date1, date2) == 0) Console.Write("date1 == date2");
if (DateTime.Compare(date1, date2) < 0) Console.Write("date1 < date2");
Nirosh.
"Peter Danielsson" <an*******@discussions.microsoft.com> wrote in message
news:84****************************@phx.gbl...
Hello,
Try something like this.
Date1.AddDays(1).equals(Date2))
Peter
-----Original Message-----
Hello,
I have two dates.
How can I check if the second date is the day after the
first date?
thx
--
----------------------------------------------------
I'm from Germany, so excuse my english :-)
ICQ: 97255866
.