Domino Code Fragment

Code Name*
Date Computation Formula
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.135.183.1
Description*
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.
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
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))))