Days between two dates
days_between_datesCount the calendar days between two dates and break the gap into weeks, months and years, with the weekdays and weekend days inside it. Use it for 'how many days until X', tenure, age of a record, notice periods in calendar days and countdowns. Use business_days_between instead to leave out weekends and federal holidays, and time_duration_between when clock times matter. Valid for years 2000 to 2100.
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_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "days_between_dates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | The second date; if it is before start_date the two are swapped as a calendar date in the form YYYY-MM-DD, for example 2026-11-02. | |
| start_date | Yes | The first date as a calendar date in the form YYYY-MM-DD, for example 2026-11-02. | |
| include_end_date | No | Whether the end date itself counts as a day, which adds one to the total. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | The inputs as used, with defaults filled in. | |
| results | Yes | The computed numbers. Unavailable numbers are null. | |
| summary | Yes | One or two plain sentences with the headline numbers. | |
| calculator_url | Yes | The TeamPredict calculator page that shows the same calculation, where a person can change the inputs. |