Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Counting Days
Message
 
À
16/10/2000 14:53:20
Erin Eby
Mission Critical Software
Gainesville, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00429936
Message ID:
00429963
Vues:
16
Erin,

Something like this:

***count number of weeks and add or subtract for days that fall in the
***middle of the week

lworkdays=(year(lenddate)*52+week(lenddate,2,3)-;
year(lstartdate)*52+week(lstartdate,2,3))*5-;
(5-dow(lenddate,2))-; &&if lastday isn't friday
(dow(lstartdate,2)+1) &&if first day isn't monday

My math might be a little off, but this should give you the general idea.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform