date-time →
age() → integer

Returns the completed years between the argument dateTime and the current date. Returns null for null or future dates. In a non-leap year, a February 29 birthday is reached on February 28.

Parameters

This function has no parameters.

Examples

#"2024-01-15 12:30:00" | age  2

Kind: Function
Scope: temporal
Aliases: date-to-age


This site uses Just the Docs, a documentation theme for Jekyll.