Get Business Days

RpaBrasil.Date.Activities.GetBusinessDays

Returns an IEnumerable<DateTime> with the dates and the number of business days in a specified date range.

Properties

Input

  • StartDate - Calculation start date.
  • FinalDate - Calculation final date. It must be greater than or equal to StartDate property.
  • Holidays - An IEnumerable<DateTime> with holiday dates.
  • SaturdayAsBusinessDay - Considers Saturday as a business day.
  • SundayAsBusinessDay - Considers Sunday as a business day.

Output

  • BusinessDays - An IEnumerable of DateTime with business days.
  • NumberOfDays- An integer with the number of business days.