Count UAE working days between two dates
working_days_betweenCount working days between two dates for a UAE emirate/sector (choose which endpoints to include), with the number of Friday half days and the list of non-working days in the range. Use for leave calculations, payroll, project durations and lateness. Example: {start_date:'2026-05-18', end_date:'2026-06-05', emirate:'federal', sector:'public'} → working_days 10, of_which_half_days 2. Response always includes data_confidence ('high' = all dates officially announced/confirmed, 'medium' = something is estimated), estimated_items[], sources[] (official URLs) and data_version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sector | No | Sector: public (government) | private. Government employees, courts and ministries → 'public'. Companies → 'private' (weekend is employer-set; the common Sat–Sun default is used and flagged). | public |
| emirate | No | Calendar profile emirate: federal | abu_dhabi | dubai | sharjah | ajman | umm_al_quwain | ras_al_khaimah | fujairah. Use 'federal' unless the user named an emirate's government. Emirates other than Sharjah currently follow the federal weekend. | federal |
| end_date | Yes | ISO date. May be before start_date (result is negative). | |
| inclusive | No | Which endpoints to count: both (default) | start | end | none. | both |
| start_date | Yes | ISO date. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||