Difference between two dates
calculate_date_differenceNumber of days between two calendar dates (end minus start), also as weeks + days and as years, months and days. Leap years are handled.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"start": "<start>",
"end": "<end>"
},
"name": "calculate_date_difference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Second date, YYYY-MM-DD | |
| start | Yes | First date, YYYY-MM-DD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Calendar date, YYYY-MM-DD | |
| days | Yes | end − start in days; negative when end is before start | |
| notes | Yes | Caveats and conventions that apply to this response. | |
| start | Yes | Calendar date, YYYY-MM-DD | |
| weeks | Yes | ||
| source | Yes | Where the data or the algorithm comes from. | |
| calendar | Yes | ||
| negative | Yes | ||
| endWeekday | Yes | English weekday name | |
| startWeekday | Yes | English weekday name |