hi,
i need code that compare date and return the difference in days.
Regards,
yashvant.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
DRISHTYPosted May 14, 2010, 3:16 AM
try this..
TimeSpan ts=dateTime2.Subtract(dateTime1);
double daysDifference=ts.TotalDays