← All tool references

Date & Time · not_available

Nth Weekday of Month Calculator

Find a numbered weekday occurrence within a month.

Open public tool

Overview

Category
Date & Time
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/nth-weekday-of-month-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/nth-weekday-of-month-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

year · number · required
Enter year.
month · number · required
Enter month.
weekday · string · required
Enter weekday. Accepted values: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
occurrence · number · required
Enter occurrence.
{
    "type": "object",
    "properties": {
        "year": {
            "type": "number",
            "description": "Enter year."
        },
        "month": {
            "type": "number",
            "description": "Enter month.",
            "minimum": 1,
            "maximum": 12
        },
        "weekday": {
            "type": "string",
            "description": "Enter weekday.",
            "enum": [
                "Sunday",
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday"
            ]
        },
        "occurrence": {
            "type": "number",
            "description": "Enter occurrence.",
            "minimum": 1,
            "maximum": 5
        }
    },
    "required": [
        "year",
        "month",
        "weekday",
        "occurrence"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

date · string
Matching date produced by the tool.
exists · string
Exists in month produced by the tool.
day_of_year · number
Day of year produced by the tool.
{
    "type": "object",
    "properties": {
        "date": {
            "type": "string",
            "description": "Matching date produced by the tool."
        },
        "exists": {
            "type": "string",
            "description": "Exists in month produced by the tool."
        },
        "day_of_year": {
            "type": "number",
            "description": "Day of year produced by the tool."
        }
    },
    "additionalProperties": false
}

Nth Weekday of Month Calculator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/nth-weekday-of-month-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "year": 2026,
    "month": 7,
    "weekday": "Friday",
    "occurrence": 3
}'
{
    "ok": true,
    "data": {
        "slug": "nth-weekday-of-month-calculator",
        "result": {
            "values": {
                "date": "2026-07-17",
                "exists": "Yes",
                "day_of_year": 198
            },
            "display": {
                "display": "2026-07-17"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.