- Code: Select all
`DateToNum "[DateFld]" "Default" "[NumResult]"`

DateToNum "[DateShort]" "Default" "[Today]"

Math "[Today]-[NumResult]" "0" "[Result]"

Math "[Result]/365" "1" "[Result2]"

SearchStr "." "[Result2]" "[PosOfPeriod]" ""

StrDel "[Result2]" "3" "2" "[RemoveDec]"

AlertBox "Answer" "Person is [RemoveDec] years old born [DateFld]"

Then it occurred to me that dividing by 365 may not be give the desired results because of leap years.

Thoughts?