Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add Work days to a date
Message
De
02/04/2007 12:02:03
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01211326
Message ID:
01211338
Vues:
11
>>>Hi All
>>>
>>>Anyone have a good program to add the number of workdays to a date without looping through the dates? I am not worried about holidays and such. Just Monday through Friday.
>>>
>>>Thanks.
>>
>>Something like this:
>>
>>Function addworkdays
>>Lparameters dStartdate,nAdddaysnumber
>>Return dStartdate+7*floor(nAdddaysnumber/5)+MOD(nAdddaysnumber,5)
>>
>
>http://forum.foxclub.ru/read.php?29,257314,257923#msg-257923 <g>

Okh uzh eti russkie, vechno putayut rabochiye dni s vykhodnymi.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform