Hello,
I have two dates “Date From” and “Date to”, I want to know how many days within this date range are in Q1/2/3/4. Example:
Date from = 20 May
Date To = 15 Sep
Q1 = 0
Q2 = 41
Q3 = 76
Q4 = 0
I can’t seem to get this done,thanks assistance.
Stijn
(
if mydate in CDate(2008, 01, 01) to CDate(2008, 03, 31) then q1 := q1+1 else
if mydate in CDate(2008, 04, 01) to CDate(2008, 06, 30) then q2:= q2+1 else
if mydate in CDate(2008, 07, 01) to CDate(2008, 10, 31) then q3:= q3+1 else
q4 := q4+1 ;
i := i + 1;
mydate := mydate+1
)
;