Get Age from Birthday
Utility - Get Age from Birthday
Section titled “Utility - Get Age from Birthday”This operation calculates a person’s age based on their provided birthdate.
Endpoint
Section titled “Endpoint”POST /api/v1/Utility/GetAgeFromBirthdayRequest Parameters
Section titled “Request Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| BirthDate | DateTime | Yes | - | The birthdate of the person |
| AtDate | DateTime | No | Current UTC time | Optional date at which to calculate the age |
Response
Section titled “Response”An unsigned integer representing the calculated age in years.
Implementation Details
Section titled “Implementation Details”The operation calculates the person’s age by determining the number of complete years between the provided birthdate and the reference date (either the current date or a specified date).
Usage Notes
Section titled “Usage Notes”- Dates should be provided in ISO format (e.g., “2000-01-31”)
- This operation is useful for age verification, eligibility checks, or demographic analysis
Credit Cost
Cost: 0.05 credit(s) per call
Note: Fixed cost per call regardless of input complexity