private static int monthDifference(DateTime startDate, DateTime endDate)
{ int monthsApart =
12 * (startDate.Year - endDate.Year) + startDate.Month - endDate.Month; return Math.Abs(monthsApart);
12 * (startDate.Year - endDate.Year) + startDate.Month - endDate.Month; return Math.Abs(monthsApart);
}
No comments:
Post a Comment