Domino Code Fragment

Code Name*
How to compare date/time fields using Lotuscript.
Date*
04/29/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.129.69.151
Description*
This example will compare two date fields in document:
Type*
LotusScript
Categories*
Date/Time Handling
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
mdate1V = document.DateField1(0)
mdate2V = document.DateField2(0)
If mdate1V < mdate2V Then
 MsgBox "DATE 1 LESS THEN DATE 2"
Else
 MsgBox "DATE 2 LESS THEN OR EQUAL TO DATE 1)
End If