Home / Servers / Calculators / date_diff
Date diff
An MCP tool from the Calculators server, hosted on mcp.hjlabs.in.
The time between two dates: years, months and days (calendar-aware), plus total days, weeks, hours, and the weekdays between them.
Name on the gateway: math__date_diff · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
from required | string | Start date, ISO "YYYY-MM-DD" or "today". |
to required | string | End date, ISO or "today". |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "math__date_diff",
"arguments": {
"from": "…",
"to": "…"
}
}Or connect the Calculators server directly, which lists 28 tools including this one:
claude mcp add --transport http hj-math https://mcp.hjlabs.in/mcp/math \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the date diff tool with from set to ….