—
- In months
- —
- In weeks
- —
- In days
- —
- Next birthday
- —
🔒 Runs entirely in your browser.
Using an AI agent or a script? Call this tool as an API
AI agents and scripts can call this tool directly, to check their work or look something up, and get JSON back with the same answer this page gives. No key needed.
GET https://digitalgreenhouse.com.au/api/tools/age-calculator?dob=1990-02-28&on=2026-10-02
dob— string, required. Date of birth (or start date), YYYY-MM-DD. Also accepted asfrom,birthdate.on— string, optional. Date to measure to, YYYY-MM-DD. Defaults to today in Australia/Sydney. Also accepted asto.
The API answers from our server, and our code doesn’t store what you send. Fair-use limits apply. API guide · all endpoints (JSON) · OpenAPI
Exact age, done properly
Working out an exact age is fiddlier than it looks because months have different lengths and leap years add a day. This tool counts complete years, then complete months, then the leftover days — the same way you’d say “26 years, 5 months and 20 days”. It also totals the whole span in months, weeks and days, and counts down to the next birthday, which is handy for forms, eligibility dates and milestones.