Lotus Notes FAQ Visit Our Sponsor!

How do you compare date/time fields using Lotuscript?

This example will compare two date fields in document:

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

Applies to Notes Versions: 4 4.5 4.6 5
Last Modified: August 26, 1997