Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Very Difficult Question?
Message
From
17/10/1997 09:25:19
 
 
To
17/10/1997 03:40:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00055109
Message ID:
00055141
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform