ISO date compare

iso-date-compare · version 1.0.0 · Dates & times (UTC, ISO 8601) · free, no key needed

Compare two YYYY-MM-DD calendar dates and return -1, 0, or 1.

Use when you need to: iso date compare · compare two dates · date ordering.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "a": "2026-01-01",
  "b": "2026-01-02"
}

Response:

{
  "result": {
    "comparison": -1
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "iso-date-compare",
  "version": "1.0.0",
  "input": {
    "a": "2026-01-01",
    "b": "2026-01-02"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/iso-date-compare/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"a":"2026-01-01","b":"2026-01-02"}'

The machine-readable contract is at /v1/tools/iso-date-compare/versions/1.0.0.

CLI

node cli.mjs run iso-date-compare 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.