Date Math Calculator
Date arithmetic: day differences, business days, age, leap years, day-of-week, add/subtract.
| Endpoint | https://apished.com/mcp/v1/datemath (streamable-http) |
|---|---|
| Registry version | 1.0.0 |
| Now | 6 tools · grade C (73) · pin ts_5755488d8850fecbe8bda5451d7568d5 · protocol 2025-06-18 |
| First / last listed | 2026-11-04 02:16 UTC / 2026-11-04 02:16 UTC |
| Grade over time | 2026-11-04: C (73), 6 tools |
Is this your server? Own a server? ToolFit hosted watch re-checks it every 24 h ($0.25 per 30 days) or 6 h ($0.60) and sends you an HMAC-signed webhook when its tools or grade change: POST https://api.youraitools.co/toolfit/v1/watch. To opt out, see About & opt-out.
Tools: datemath_add datemath_age datemath_businessdays datemath_dayofweek datemath_diff datemath_leapyear
datemath_add | Adds years/months/days to date. years/months are applied together with end-of-month clamping — e.g. 2026-01-31 + 1 month = 2026-02-28, not an overflowed 2026-03-03. days is then applied as plain calendar-day arithmetic. params: date*, years, months, days |
datemath_age | Age in whole years as of asOf (optional, defaults to the current UTC date). A Feb-29 birthDate is treated as falling on March 1 in a non-leap asOf year. params: birthDate*, asOf |
datemath_businessdays | Counts days in [from, to] (inclusive on both ends) whose weekday is in weekdays (default mon-fri) and which aren't in holidays. params: from*, to*, weekdays, holidays |
datemath_dayofweek | Day of the week for date: both the weekday name and its ISO 8601 weekday number (1=Monday..7=Sunday). params: date* |
datemath_diff | Day difference between two YYYY-MM-DD dates: to minus from, in whole days. Negative if to is before from. params: from*, to* |
datemath_leapyear | Checks whether year is a leap year in the Gregorian calendar. params: year* |
Entries describe changes in tool definitions. They are not statements about a server, its quality or its author. The grade measures how the tool definitions fit model providers (token cost, schema compatibility, confusable names) as scored by the ToolFit engine at the time of the listing. JSON: append .json. Opt-out: how or hello@youraitools.co.