OK, I had posted about this earlier but was probably pretty cryptic.
Whenever I do a comparison to figure out if a date is in between a date in december and a date in january it fails. For example:
if we’re looking to see if 12/25/2008 is in between 12/23/2008 and 1/3/2009. So, my code looks like (I know the code isn’t exact, it’s just a representation):
if 12/25/2008 >= 12/23/2008 and 12/25/2008 <= 1/3/2009 then
whatever
end if
This will never run the whatever code, it always fails. So, is LotusScript unable to determine that 12/25/2008 is less than 1/3/2009?
Subject: You need to use NotesDateTime
This might not be the simplest way but it will work.
Create 3 NotesDateTime variables and set them to your start date, end date and the date you want to test.
Then use the TimeDifference method to determine if it’s after the start date and before the end date.
Subject: Did this…
OK, this is what I did and it fixed the issue. Don’t know why I didn’t think of this first.
Thanks for your reply.
Subject: How about using this
if cdat(12/25/2008) >= cdat(12/23/2008) and cdat(12/25/2008) <= cdat(1/3/2009) thenwhatever
end if
OK, you have to take care of the right oder of day, month and year refering to your OS datetime-settings but it works for me since notes 5.