Domino Code Fragment

Code Name*
Date validation...# days between date MUST be less than X...
Date*
04/29/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.217.60.35
Description*
This validation technique is from the NET support database and is used to ensure that a NET
trial installation does not exceed 60 days (otherwise, a message is displayed asking that the
end date be adjusted). In the example, Seed is the date the trial was installed, and DeSeed is the date the trial is to be
de-installed (which cannot exceed 60 days).
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
Assuming the Seed & DeSeed fields are already added to the form for input with date formats, the
first test field (called sub_1) will contain:

(DeSeed - Seed) / 86400

The second test field (the part ensuring no more than 60 days elapses from install to de-install)
will contain:

The field Sub_1 must be an Input Translation field.

REM "Required Field(s): Seed, DeSeed, Sub_1 ";
@If(sub_1 <= 60; @Success;
@Failure("Seed pack may not be installed for more than
60 days unless special arrangements have been made. If extension
arrangements have been made, please leave original termination
date in NET de-install date field and enter the extended
termination date in NET extension date field"))