Skip to contents

Calculates the current age of a person based on their birthdate.

Usage

calculate_age(birthdate)

Arguments

birthdate

A date string in the format "YYYY-MM-DD" or a Date object.

Value

A numeric value representing the age in years.