CalculateAge
Function: calculateAge()
[object Object]
Defined in: util/date.util.ts:177
Calculates the age in whole years for a given birth date, based on what "today" and the birth date render as in the association's configured timezone (so the result doesn't depend on the browser's own timezone).
Parameters
birthDateString?
[object Object]
The birth date, e.g. "1990-05-15" or a full ISO string.
Returns
number | null
The age in whole years, or null if birthDateString is empty/malformed.