date_week
ISO 8601 weeks, both directions, with the year-boundary trap shown on YOUR date. Pass 'date' → iso_year/iso_week/iso_day, week bounds, and the live proof of the %Y-W%V vs %G-W%V concatenation bug (formatting 2027-01-01 with the GREGORIAN year prints '2027-W53', a week that does not exist — 2027 has 52 weeks). Pass 'iso' (YYYY-Www-d) → the calendar date, nonexistent weeks REFUSED naming the theorem (a year has 53 ISO weeks iff it contains 53 Thursdays: Jan-1 Thursday, or Wednesday in a leap year — computed, zero embedded tables). Pass 'year' → weeks count, W01/W53 bounds, January days of the previous ISO year, neighbouring 53-week years. Excel/US conventions (WEEKNUM 1/2, %U, %W) rendered BESIDE ISO, never chosen for you — a German 'KW 53' and an American 'week 2' can name the same seven days. Platform notes included (PostgreSQL IYYY, Snowflake session policy, BSD strftime deviation measured in production testing). Free.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "date_week"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iso | No | YYYY-Www-d (day optional) — to calendar date | |
| date | No | YYYY-MM-DD — to ISO week | |
| year | No | YYYY — how many weeks, does W53 exist |