Get Work Dates

Calculates and returns the working days between two dates (excluding weekends and holidays)


⬅️INPUT

Parameter

Type

Required

Description

StartDate

DateTime

✅ Yes

Start date

EndDate

DateTime

✅ Yes

End date

TotalWorkDays

Int32

❌ No

Total number of working days

FirstDayOfWeek

Int32

❌ No

First day of the week (0=Sunday, 1=Monday, etc.)


➡️OUTPUT

Parameter

Type

Description

IsGetWorkDatesSuccessful

Boolean

Whether the operation succeeded

GetWorkDatesMessage

String

Operation result message

TotalBusinessDates

Int32

Total number of working days

BusinessDates

DataTable

DataTable containing the details of the working days


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Whether to throw an exception on error