/// <summary> /// Businesses the days between dates. /// </summary> /// <param name="startDate">The start date.</param> /// <param name="endDate">The end date.</param> /// <returns></returns> public List <DateTime> BusinessDaysBetweenDates(DateTime startDate, DateTime endDate) { const int cIncrementDay = 1; var allSignificantDates = new List <DateTime>(); List <DateTime> holidays = HolidaysBetweenDates(startDate, endDate); DateTime dateBase = startDate; while (dateBase <= endDate) { if (!RuleHelper.IsWeekend(dateBase)) { if (!holidays.Contains(dateBase)) { allSignificantDates.Add(dateBase); } } dateBase = dateBase.AddDays(cIncrementDay); } return(allSignificantDates); }