The formula calculates the difference in Years between two Dates. For example,
the formula below calculates your Age by subtracting Today's date from your
Birthday. Don't forget to add your Birthday field to a form or it won't work.
REM "Required Field(s): Birthday ";
@If(@Month(@Today) > @Month(Birthday); @Year(@Today) - @Year(Birthday);
@If(@Day(@Today) < @Day(Birthday);
(@Year(@Today) - @Year(Birthday)) - 1; @If(Birthday = ""; "Ageless";
@Year(@Today) - @Year(Birthday))))
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
This was first published in November 2000