Problem : How to get duration of days between two dates.
Solution :
// Get Date Between Two Dates
private int GetDaysBetweenDates(DateTime firstDate, DateTime secondDate)
{
return secondDate.Subtract(firstDate).Days;
}
C# Get Duration of Days Between 2 Dates
Posted by Unknown at 8/30/2013 11:45:00 am
Labels: ASP.net C#, C#
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment