Sorry, I am new to this, please dont bite my head off.....
If I have a datetime.now and I want to compare it to another date time (expiry date) and see if the datetime.now + 14 days is > expiry date. How do I compare the two dates, to see which is greater?
paul walkerPosted Oct 17, 2008, 5:08 PM
AlanPosted Oct 17, 2008, 9:22 AM
Something like this should work:
if (DateTime.Now.AddDays(14) > expiryDate)
{
// do something
}
else
{
// do something else
}