# Date difference calculator

> Count the days, weeks, and business days between two dates.

Free date calculator for the exact days between two dates. See the calendar span, elapsed time, weeks, and business days with weekends and your own holiday list excluded. Runs in the browser.

- Page: https://benchline.fabwaseem.com/t/date-difference
- Runs: in the browser. Input stays on the device.
- Price: free, no account
- Input: Start and end dates, optional times, an inclusive-end switch, and a holiday list.
- Output: Calendar span, elapsed time, total days, weeks, business days, weekend days, and weekday holidays.
- Keywords: days between dates, date calculator, business days calculator
- Updated: 2026-10-18
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Enter the start and end.** Use calendar dates. Add times when you need hours and minutes, otherwise both start at midnight.
2. **Choose whether the end date counts.** Leave it off for the gap between the dates. Turn it on for an inclusive stay or a business-day count.
3. **Add holidays if you need business days.** One YYYY-MM-DD per line. The business-day total skips weekends and those weekdays.

## Use it from an AI agent

MCP tool name: `date_difference`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/date-difference with the input as the JSON body
This call does not fetch anything. It runs on the arguments you send.

Count calendar days, elapsed time, and business days between two dates. Business days skip weekends and any YYYY-MM-DD holidays you list.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "startDate": {
      "type": "string",
      "description": "Start date as YYYY-MM-DD."
    },
    "endDate": {
      "type": "string",
      "description": "End date as YYYY-MM-DD."
    },
    "startTime": {
      "description": "Start time as HH:MM or HH:MM:SS. Defaults to midnight.",
      "type": "string"
    },
    "endTime": {
      "description": "End time as HH:MM or HH:MM:SS. Defaults to midnight.",
      "type": "string"
    },
    "includeEnd": {
      "default": false,
      "description": "Count the end date as well as the days between.",
      "type": "boolean"
    },
    "holidays": {
      "default": "",
      "description": "Weekday holidays to exclude from business days, one YYYY-MM-DD per line.",
      "type": "string"
    }
  },
  "required": [
    "startDate",
    "endDate",
    "includeEnd",
    "holidays"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "date_difference",
    "arguments": {
      "startDate": "2026-10-18",
      "endDate": "2026-10-18",
      "includeEnd": false,
      "holidays": ""
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### Does the count include the end date?

Not unless you turn on Count the end date. From 1 January to 3 January is 2 days between, or 3 days when the end date is included.

### What is a business day here?

A weekday that is not in the holiday list. Saturday and Sunday are weekends. A holiday that falls on a weekend is not subtracted twice.

### Which country's holidays are built in?

None. Paste the dates you care about, one YYYY-MM-DD per line, so company holidays and local holidays stay under your control.

### Are the dates sent to a server?

No. The count is computed in the browser.

## Related tools

- [Unix timestamp converter](https://benchline.fabwaseem.com/t/unix-timestamp): Turn epoch seconds or milliseconds into a date, and a date in any time zone back into epoch time.
- [Cron expression builder](https://benchline.fabwaseem.com/t/cron-expression-builder): Build or paste a cron schedule, read it in plain English, and see the next run times.
- [Hash generator](https://benchline.fabwaseem.com/t/hash-generator): MD5, SHA-1, SHA-256, and SHA-512 checksums for text or a file, with HMAC.
- [Password generator](https://benchline.fabwaseem.com/t/password-generator): Cryptographic passwords and passphrases, with an entropy strength meter.
