# centralcity.ai Date Difference Calculator

> centralcity.ai Date Difference Calculator is a paid API for AI agents from centralcity.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-20).

Calculates the time between two dates, returning the difference in days, weeks, calendar months, and years.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_ectofehwwkhwut7b?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/centralcity-ai-date-difference-calculator-6e8f4cd6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4qURa8hE4ZWW0blTfkXZH

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 centralcity-ai-date-difference-calculator-6e8f4cd6 -d '<json body>'
```

Example prompt: How many days, weeks, months, and years are between 2020-03-15 and 2024-11-01?

## When to prefer this

Use this endpoint when you need a precise, structured breakdown of the time between two specific calendar dates across multiple units (days, weeks, months, years) simultaneously, without needing to implement the calendar arithmetic yourself. Ideal for agents computing durations for scheduling, age calculation, contract timelines, or countdown logic.

## Known failure modes

- Invalid date format (not YYYY-MM-DD) returns an error
- Dates outside the range year 1 to 9999 are rejected
- Missing 'from' or 'to' field returns a validation error
- 'from' date after 'to' date may return a negative or error result

## How this service works

The time between two dates: days, weeks, and calendar years, months and days.

## Output

Returns the difference between two ISO-format dates broken down into total days, total weeks, and the calendar distance in years, months, and days — giving both precise and human-readable temporal measurements.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "description": "The second date, YYYY-MM-DD (years 1 to 9999)."
  },
  "from": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
   "description": "The first date, YYYY-MM-DD (years 1 to 9999)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/centralcity-ai-date-difference-calculator-6e8f4cd6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from centralcity.ai](https://www.zero.xyz/host/centralcity.ai/llms.txt)
