Dates Comparison
Dates Comparison
(OP)
Hi,
I am having difficulties comparins the dates.
Here is what I do and it does not work:
If doc.PLAN_INSTL_DATE(0) < 11/01/2001 Then
'do something
Else
Even if doc.PLAN_INSTL_DATE is before 11/01/2001, script jumps to the ELSE condition.
Please help.
I am having difficulties comparins the dates.
Here is what I do and it does not work:
If doc.PLAN_INSTL_DATE(0) < 11/01/2001 Then
'do something
Else
Even if doc.PLAN_INSTL_DATE is before 11/01/2001, script jumps to the ELSE condition.
Please help.
RE: Dates Comparison
Leslie
landrews@metrocourt.state.nm.us
There are 10 types of people in the world -
those who understand binary
and
those who don't!
RE: Dates Comparison
try the following 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 should help you.