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

NameTypeDescription
from requiredstringStart date, ISO "YYYY-MM-DD" or "today".
to requiredstringEnd 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:

call_tool arguments
{
  "name": "math__date_diff",
  "arguments": {
    "from": "…",
    "to": "…"
  }
}

Or connect the Calculators server directly, which lists 28 tools including this one:

Run in your terminal
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 ….

More from Calculators