Workdays
Calculate business days and deadlines
This API uses Holidays for its calculation. Check out Holidays API.
Calculate business date in the specified country
2026-04-16
Thursday
Holidays skipped:
2
Weekends skipped:
4
2026-04-14
Tuesday
Holidays skipped:
1
Weekends skipped:
4
Calculate the number of business days between two dates in a country
20
Business Days
3
Holidays skipped
8
Weekends skipped
API Documentation
/api/v1/info/workdays/calculate/{country}/{days}/{from?}
Calculate the date after a specified number of business days in a country.
The "from" parameter is optional. If provided, it must be a date in ISO format (YYYY-MM-DD). If omitted, the current date is used.
Method: GETResponse Format: JSON
GET https://api.prompt.lv/api/v1/info/workdays/calculate/LV/10/2026-04-01{
"success": true,
"code": 200,
"result": {
"workdays": 10,
"holidays": 2,
"weekends": 4,
"date": "2026-04-16",
"dow": 4
}
}/api/v1/info/workdays/between/{country1}/{country2}/{days}/{from?}
Calculate the date after a specified number of business days, taking into account holidays in both source and target countries.
The "from" parameter is optional. If provided, it must be a date in ISO format (YYYY-MM-DD). If omitted, the current date is used.
Method: GETResponse Format: JSON
GET https://api.prompt.lv/api/v1/info/workdays/between/LV/PL/10/2026-04-01{
"success": true,
"code": 200,
"result": {
"workdays": 10,
"holidays": 1,
"weekends": 4,
"date": "2026-04-14",
"dow": 2
}
}/api/v1/info/workdays/count/{country}/{from}/{to}
Calculate the number of business days between two dates in a country
Method: GETResponse Format: JSON
GET https://api.prompt.lv/api/v1/info/workdays/count/LV/2026-04-01/2026-05-01{
"success": true,
"code": 200,
"result": {
"workdays": 20,
"holidays": 3,
"weekends": 8,
"date": "2026-05-01",
"dow": 5
}
}200 | Successful request |
422 | Validation error (e.g., invalid country code or days) |