How to get No of days from Two dates in c#
DateTime d1 = DateTime.Now;
DateTime d2 = DateTime.Now.AddDays(-1);
TimeSpan t = d1 - d2;
double NrOfDays = t.TotalDays;
Thanks for read this Article.
Post all my problems that i face in development time.that help you
Comments
Post a Comment