I am new to progress and I want to calculate age from the date of birth and I have no idea how to do it. If anyone knows about this please help me. Thanks in advance.
What I have tried so far is:
define var dob as date.
define var age as character.
assign
dob = 09/16/1988.
age = STRING(INT(YEAR(TODAY) - YEAR(dob ))).
message age view-as alert-box.
it show age 30 but in real the age is 29.