Date Math v1.7.0
Date Math / Tools / date_info

Day of week, ISO week and quarter for any date

Calendar facts for a date: day of the week, ISO week number, quarter, day of year, leap year, weekend. Use for "what day is", week numbers and fiscal quarters.

MCP tool date_infoHTTP POST /v1/info25 free calls a day, then $0.001

Try it

Runs the real tool over MCP. Edit the arguments and run. Uses your daily free calls.

date_info
result
{
  "date": "2026-11-07",
  "weekday": "Saturday",
  "weekday_number": 6,
  "iso_year": 2026,
  "iso_week": 45,
  "quarter": 4,
  "day_of_year": 311,
  "days_in_year": 365,
  "days_remaining_in_year": 54,
  "days_in_month": 30,
  "is_leap_year": false,
  "is_weekend": true,
  "unix_seconds": 1794009600
}

The result shown before you run is a saved example response.

Use it from your agent

Add the MCP server once and your agent can call date_info and the other 19 tools.

Claude Code

One command in your terminal.

claude mcp add --transport http date-math https://date-math.datemath.workers.dev/mcp

Any MCP client

Claude Desktop, Cursor, VS Code, Windsurf.

{
  "mcpServers": {
    "date-math": {
      "url": "https://date-math.datemath.workers.dev/mcp"
    }
  }
}

HTTP + x402

POST JSON; pay the 402 with any x402 client.

curl -X POST https://date-math.datemath.workers.dev/v1/info \
  -H "Content-Type: application/json" \
  -d '{"date":"2026-11-07"}'

Full schema: OpenAPI · llms.txt