Catalog/datetime-last-weekday-of-month

Date & Time

Last weekday of a month API

Resolves the date of the last given weekday in a month (e.g. last Monday = Memorial Day), returning which occurrence number it is. Answers 'When is the last Friday of December 2026?', 'Last Monday of May (Memorial Day)?'.

Price$0.04per request
MethodPOST
Route/v1/datetime/last-weekday-of-month
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
datetimerecurrencelast-weekdayweekdaymonthlycalendarmemorial-dayschedule
API URLhttps://x402.hexl.dev/v1/datetime/last-weekday-of-month
Integration docs
Example request
{
  "year": 2026,
  "month": 5,
  "weekday": "Monday"
}
Example response
{
  "year": 2026,
  "month": 5,
  "weekday": "Monday",
  "date": "2026-05-25",
  "occurrenceInMonth": 4,
  "interpretation": "The last Monday of 2026-05 is 2026-05-25 (the fourth Monday)."
}
Input schema
{
  "type": "object",
  "required": [
    "year",
    "month",
    "weekday"
  ],
  "properties": {
    "year": {
      "type": "integer",
      "examples": [
        2026
      ]
    },
    "month": {
      "type": "integer",
      "examples": [
        5
      ]
    },
    "weekday": {
      "type": [
        "string",
        "integer"
      ],
      "examples": [
        "Monday"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}