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
| Method | Path | Description |
|---|---|---|
| GET | /parse | parse to components |
| GET | /diff | duration between dates |
| GET | /add | date math |
| GET | /business-days | weekday count |
| GET | /age | age from DOB |
Quick start
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 '{}'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();{
"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.
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 ↗