calculate_age
Calculate age in years, months, and days from a birthdate. Optionally specify a date for age calculation.
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 |