Hai ,
In my project I need to find total running days of from the order date to current date or Today date ,
How can I do this in my project .
Please suggest any idea to finish this concept and it's urgent please somebody help me to solve this.
For an example :
Order Date :01-10-2015 and Today Date:13-10-2015
Order running Days : 13
This is my concept. I hope you can understand.



Vipan SharmaRank #1,589 · 999 reputationPosted Oct 13, 2015, 3:01 AM EDT
DateTime oldDate = new DateTime(2002,7,15); DateTime newDate = DateTime.Now; // Difference in days, hours, and minutes. TimeSpan ts = newDate - oldDate; // Difference in days. int differenceInDays = ts.Days;Convert the result as your requirement
Hope it will help you .
Accept Answer