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-10-12
Monday
Holidays skipped:
0
Weekends skipped:
4
2026-10-09
Friday
Holidays skipped:
0
Weekends skipped:
2

Calculate the number of business days between two dates in a country

23
Business Days
0
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-09-29
{
    "success": true,
    "code": 200,
    "result": {
        "workdays": 10,
        "holidays": 0,
        "weekends": 4,
        "date": "2026-10-12",
        "dow": 1
    }
}

/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-09-29
{
    "success": true,
    "code": 200,
    "result": {
        "workdays": 10,
        "holidays": 0,
        "weekends": 2,
        "date": "2026-10-09",
        "dow": 5
    }
}

/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-09-29/2026-10-29
{
    "success": true,
    "code": 200,
    "result": {
        "workdays": 23,
        "holidays": 0,
        "weekends": 8,
        "date": "2026-10-29",
        "dow": 4
    }
}
200Successful request
422Validation error (e.g., invalid country code or days)