Date and duration calculator
Last verified 2026-12-05
Enter two dates to compare, or a date and a duration like P1Y6M or -P2W. Leave both empty for facts about the start date.
ISO 8601 durations: P = period, then years (Y), months (M), weeks (W) and days (D); T starts the time part: hours (H), minutes (M) and seconds (S). P1M3D is one month and three days; PT90M is ninety minutes.
For AI assistants and developers
Available as the MCP tool date_calculator at /mcp, and over REST:
POST /api/tools/date_calculator
{"start":"2026-01-31","add":"P1M"}