Calculate Date Difference
Hi Friends I want to calculate difference between two dates accepted from calender control
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
Suvendu Shekhar GiriRank #546 · 4.4K reputationPosted Feb 22, 2017, 12:15 AM EST
Gnanavel SekarRank #333 · 7.5K reputationPosted Feb 22, 2017, 12:29 AM EST
Rafnas T PRank #280 · 8.8K reputationPosted Feb 22, 2017, 1:20 AM EST
double totalDays= Diff .TotalDays;
int days=Diff .Days;
or
(Convert.ToDateTime(EndCalender.Date)- Convert.ToDateTime(StartCalender.Date)).TotalDays
kishor choure83 reputationPosted Feb 22, 2017, 1:49 AM EST