Assume bd is valid date
return year(date()) - year(bd) - iif((month(date())*31)+day(date())<(month(bd)*31)+day(bd),1,0)
Glenn
>Ok, that 'puzzle' from Hilmar was far too easy (took me 10 seconds, ok .. 30).
>
>Here's a nice contest. Who can write the shortest function (using native vfp functions/commands) that returns a person's age. Input is the birthday and the current date. The winner will get 3 points from me!