Date Difference Calculator
Calculate the difference between two dates in various time units
API Documentation
Request Endpoint
POST /en/api/tools/date-difference
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| startDate | date | Yes | - |
| endDate | date | Yes | - |
| includeWeekdays | checkbox | No | - |
| includeBusinessDays | checkbox | No | - |
| precision | number | No | - |
Response Format
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}
JSON Data:
JSON Data
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-date-difference": {
"name": "date-difference",
"description": "Calculate the difference between two dates in various time units",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=date-difference",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
If you encounter any issues, please contact us at [email protected]