Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Very Difficult Question?
Message
De
17/10/1997 09:25:19
 
 
À
17/10/1997 03:40:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00055109
Message ID:
00055141
Vues:
26
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform