# Get Work Dates

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


---

### :arrow_left:**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.) |


---

### :arrow_right:**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 |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Whether to throw an exception on error |