calculate_age
Compute precise age in years, months, and days from a birthdate, optionally using a specific reference date.
Instructions
Calculate precise age from a birthdate.
Use this to compute someone's age in years, months, and days, either
as of today or a specified date.
Parameters:
birthdate — Birthdate in ISO format (e.g. "1990-04-15") (required).
as_of — Date to calculate age as of (ISO format). Defaults to
today if empty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| birthdate | Yes | ||
| as_of | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |