Getting a particular date

Hi everyone,I’m trying to get a particular date (i.e. 06/06/05)between 2 dates (i.e. 06/02/05 and 06/09/05) and if that date matches the date i have specified (i.e 06/06/05)then i want to deduct a day from the amount of days between the 2 dates…the problem is how do i search all the dates between the 2dates to do my comparison! I’m adding on to code already written, which is written in Formula language. Any ideas and contributions will be welcomed, thanks…

Subject: getting a particular date

Do you need to search all the dates between 2 dates, can you not simply use > and < comparisons i.e.

adjustment:=@if([06/06/05]>=[06/02/05] & [06/06/05]<=[06/09/05];-1;0);

FinalNumDays:=TotalNumDays + adjustment;

If you need to get a list of all the dates between two dates you can do something horrible with @explode:

@Explode(@TextToTime(@Text([06/02/05]) + “-” + @Text([06/09/05])))

but I wouldn’t recommend this approach!

HTH - Rufus.

Subject: RE: getting a particular date

Rufus A,Yeah sorry bout that, I was using that but what happened was I was changing the date into an integer earlier in the code using the @Weekday and I was getting an error…my mistake,thank you once again, you have been most helpful! p.s. its hard to keep track of this flippin formula code!!