# AgentTools Date Difference Calculator

> AgentTools Date Difference Calculator is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Calculates the total days between two dates, plus breakdowns in weeks/days and calendar years/months/days.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/calculators/date-difference-calculator?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-date-difference-calculator-670e2a50
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LUmRr9dLXJND3MfKBgrv5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agenttools-date-difference-calculator-670e2a50
```

Example prompt: How many days, weeks, and calendar months are between 2023-01-15 and 2025-06-30?

## When to prefer this

Use this endpoint when you need a precise, structured date-difference calculation that includes multiple representations simultaneously — total days, weeks+days, and calendar years/months/days — rather than computing only one metric manually. Ideal for scheduling, contract management, age calculation, or any workflow needing a full temporal breakdown between two known dates.

## Known failure modes

- Invalid date format (not ISO YYYY-MM-DD) returns an error
- Start date after end date may return a negative or zero result
- Missing required start or end parameter returns a 400-level error
- Out-of-range or non-existent dates (e.g. 2023-02-30) may cause parsing errors

## How this service works

Count the total days between two dates, plus the breakdown in weeks and days and in calendar years, months and days. Use this when an agent needs to days, weeks and calendar time between two dates.

## Output

Returns the total number of days between the two dates, the equivalent broken down into complete weeks plus remaining days, and the full calendar breakdown in years, months, and days.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "start",
      "end"
     ],
     "properties": {
      "end": {
       "type": "string",
       "description": "ISO format YYYY-MM-DD"
      },
      "start": {
       "type": "string",
       "description": "ISO format YYYY-MM-DD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-date-difference-calculator-670e2a50/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
