Question: how to calculate days between two dates in asp.net?
Answer: //Creating object of TimeSpan Class. TimeSpan objTimeSpan = ToYear - FromYear; //Total Hours. double TotalHours = objTimeSpan. ...  //Total Minutes. double TotalMinutes = objTimeSpan. ...  //Total Seconds. double TotalSeconds = objTimeSpan.