The best way to compare dates in LScript is to use NotesDateTime objects.
try the following code :
Code:
dim docdate as notesdatetime
dim checkdate as notesdatetime
set checkdate = new notesdatetime("11/01/2001")
set docdate = new notesdatetime(doc.PLAN_INSTL_DATE(0))
If docdate.dateonly < checkdate.dateonly Then
'do something
Else
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.