# Agent Data Tools: Date Difference Calculator

> Agent Data Tools: Date Difference Calculator is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Calculates the difference between two dates or timestamps, returning days, weeks, months, years, weekdays, and remaining days.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/date/diff?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-date-difference-calculator-60d3fb85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ljfqNdFshi7pQgqT6k2yn

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 agent-data-tools-date-difference-calculator-60d3fb85
```

Example prompt: How many days, weekdays, weeks, and months are there between January 15 2025 and November 30 2025?

## When to prefer this

Choose this endpoint when an AI agent needs a fast, low-cost ($0.001 USDC), no-account-required computation of the span between two dates in multiple units simultaneously (days, weekdays, weeks, months, years). Ideal for scheduling, deadline tracking, contract duration, and any workflow that needs calendar arithmetic without spinning up a local date library.

## Known failure modes

- Missing 'from' or 'to' query parameter returns an error
- Invalid or unparseable date string causes a bad request error
- Payment failure via x402 results in no charge and no response
- Reversed date order (from > to) may return negative or unexpected values

## How this service works

Time between two dates or timestamps: total days, weeks, hours, minutes and seconds, a years-months-days breakdown, and the number of weekdays (Monday-Friday) in between. Use for deadlines, ages and durations.

## Output

A JSON object with numeric fields: days (total days between the two dates), weeks (decimal weeks), months (whole months), years (whole years), weekdays (business days excluding weekends), and remainingDays (days remaining after whole months are accounted for).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "from",
  "to"
 ],
 "properties": {
  "to": {
   "type": "string",
   "description": "End date or ISO timestamp"
  },
  "from": {
   "type": "string",
   "description": "Start date or ISO timestamp"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "days": {
   "type": "number"
  },
  "weeks": {
   "type": "number"
  },
  "years": {
   "type": "number"
  },
  "months": {
   "type": "number"
  },
  "weekdays": {
   "type": "number"
  },
  "remainingDays": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-date-difference-calculator-60d3fb85/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
