Home / APIs / Date & Time Toolkit

Date & Time Toolkit API

Parse dates, diff and add durations, business-day math, and age — ISO + epoch, UTC.

Get it on RapidAPI ↗

Date & Time Toolkit does the date math that's annoying to get right by hand. Parse an ISO-8601 string or a Unix epoch into full UTC components (year, month, day, time, weekday, day-of-year, ISO week, leap-year flag); get the difference between two dates in any unit plus a humanized string; add or subtract durations (including months and years); count business days (Mon-Fri) in a range; and compute precise age in years, months, and days.

All operations are pure UTC functions — deterministic, fast, and stateless. Perfect for scheduling, billing periods, SLAs, dashboards, and anywhere you'd otherwise pull in a heavy date library.

Endpoints

MethodPathDescription
GET/parseparse to components
GET/diffduration between dates
GET/adddate math
GET/business-daysweekday count
GET/ageage from DOB

Quick start

cURL (via RapidAPI)
curl --request curl \
  --url 'https://date-time-toolkit2.p.rapidapi.com/-G "https://date-time-toolkit2.p.rapidapi.com/diff" -d "from=2023-01-01" -d "to=2023-12-31" -d "unit=days" -H "X-RapidAPI-Key: YOUR_KEY" -H "X-RapidAPI-Host: date-time-toolkit2.p.rapidapi.com"' \
  --header 'X-RapidAPI-Key: YOUR_KEY' \
  --header 'X-RapidAPI-Host: date-time-toolkit2.p.rapidapi.com' \
  --header 'content-type: application/json' \
  --data '{}'
JavaScript (fetch)
const res = await fetch('https://date-time-toolkit2.p.rapidapi.com/-G "https://date-time-toolkit2.p.rapidapi.com/diff" -d "from=2023-01-01" -d "to=2023-12-31" -d "unit=days" -H "X-RapidAPI-Key: YOUR_KEY" -H "X-RapidAPI-Host: date-time-toolkit2.p.rapidapi.com"', {
  method: 'curl',
  headers: {
    'X-RapidAPI-Key': 'YOUR_KEY',
    'X-RapidAPI-Host': 'date-time-toolkit2.p.rapidapi.com',
    'content-type': 'application/json'
  },
  body: JSON.stringify({})
});
const data = await res.json();
Example response
{
  "from": "2023-01-01",
  "to": "2023-12-31",
  "unit": "days",
  "difference": 364,
  "humanized": "52 weeks"
}

Pricing

Subscribe on RapidAPI. Start free; upgrade as you scale.

Basic
Free
1,000 requests / mo
Pro
$5 / mo
100,000 requests / mo
Ultra
$20 / mo
1,000,000 requests / mo
Mega
$50 / mo
2,000,000 requests / mo

Frequently asked questions

Supported date formats?

ISO 8601, epoch milliseconds, and common US/EU formats.

Is timezone handling included?

Yes, you can specify UTC or local offsets.

Does it store any data?

No, each request is processed independently.

Ready to build with Date & Time Toolkit?

Grab your key on RapidAPI and start on the free tier.

Get it on RapidAPI ↗