>I've a question
>
>
>How do i get the number of days in each month, given a date Range?
>
>eg: Date Range is 02/12/1997 to 05/20/1997
> thats makes it Feb : we have 16 days
> Mar : we have 31 days
> Apr : we have 30 days
> May : we have 20 days
>
>Thanks
>Andrew Kong
***** function to collect days for each month
parameter dStartdate,dEnddate
local array aDaymonth(12)
aDaymonth=0
for dDate=dStartdate to dEnddate
aDaymonth[month(dDate)]= aDaymonth[month(dDate)]+1
endfor
*** aDaymonth contains days for each month now
Edward Pikman
Independent Consultant