A child's exact age
child_ageThe exact calendar age from a birth date: whole years, months and leftover days, plus the total in months, weeks and days. Use it for 'how old is my baby in months', 'age in weeks' and for turning a birth date into an age in months. This is the age since birth, not the age corrected for prematurity. Dates are YYYY-MM-DD.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | Date to calculate on, YYYY-MM-DD. Defaults to today in UTC; pass the user's own date to avoid being a day off near midnight. | |
| locale | No | Language for the disclaimer and any clinician note. Pass the language you will answer the user in: these are clinical safety texts written by a paediatrician, and they should reach the reader as written rather than translated by the model. | en |
| birthDate | Yes | Date of birth, YYYY-MM-DD. |