Appearance
BusinessDaysBetween Method
Definition
- Namespace:
JASE.Extensions - Assembly:
JASE.Primitives.dll
Overloads
| Name | Description |
|---|---|
int BusinessDaysBetween(DateTime input, DateTime end, IEnumerable<DateTime> holidays, bool excludeWeekends, CultureInfo culture = null) | Calculate Business Days between 2 dates accounting for defined holidays |
int BusinessDaysBetween(DateTime input, DateTime end, IEnumerable<DateTime> holidays, IEnumerable<DayOfWeek> excludeDays = null, bool allowDateFlip = null) | Calculate Business Days between 2 dates accounting for defined holidays and excluding specified days of the week If allowReverse is true, the method reverses input and end when input > end. |
int BusinessDaysBetween(DateTime input, DateTime end, IEnumerable<DateTime> holidays, bool excludeWeekends, CultureInfo culture = null)
csharp
int BusinessDaysBetween(DateTime input, DateTime end, IEnumerable<DateTime> holidays, bool excludeWeekends, CultureInfo culture = null)Calculate Business Days between 2 dates accounting for defined holidays
Returns
integer
int BusinessDaysBetween(DateTime input, DateTime end, IEnumerable<DateTime> holidays, IEnumerable<DayOfWeek> excludeDays = null, bool allowDateFlip = null)
csharp
int BusinessDaysBetween(DateTime input, DateTime end, IEnumerable<DateTime> holidays, IEnumerable<DayOfWeek> excludeDays = null, bool allowDateFlip = null)Calculate Business Days between 2 dates accounting for defined holidays and excluding specified days of the week If allowReverse is true, the method reverses input and end when input > end.
Returns
integer