hi,
i need code that compare date and return the difference in days.
Regards,
yashvant.
Code that compare date and return the difference in days.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
DRISHTY134 reputationPosted May 13, 2010, 11:16 PM EDT
try this..
TimeSpan ts=dateTime2.Subtract(dateTime1);
double daysDifference=ts.TotalDays