Navigation
POST datetime

business_days

1 credit

Count business days (weekdays) between two dates

Endpoint

POST /api/v1/tools/datetime/business_days

Body Parameters

date_end string required
date_start string required
exclude_holidays array | null optional default: null

Example

input Request
{
    "date_end": "2024-01-15",
    "date_start": "2024-01-01"
}
output Response
{
    "business_days": 11
}

Response Format

HTTP/1.1 200 OK SUCCESS
{
  "success": true,
  "data": {
    "business_days": 11
},
  "meta": {
    "tool": "business_days",
    "credits_consumed": 1
  }
}
HTTP/1.1 422 Unprocessable Entity ERROR
{
  "success": false,
  "data": null,
  "error": {
    "code": "validation_error",
    "message": "The given data was invalid."
  }
}

Sign in to try this tool directly from the docs.

Code Examples
Request Example
lightbulb Developer Tip

Credits are deducted before execution. If the upstream tool fails, credits are automatically refunded to your account.