Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Work days between two dates - finally!
Message
De
09/06/2003 14:39:47
 
 
À
09/06/2003 13:00:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00797684
Message ID:
00798063
Vues:
38
Hi Fabio.

This wasn't my issue, I just got to wondering how any of the function code posted so far could possibly work considering there was no way to tell what days were non-work days - especially with a nonstandard work week (not 5 days).

Your suggestion, of course, adds another dimension to the function code.

Alan

>Hi Alan,
>
>Use DOW numeration.
>
>**********************
>
>Function call to resolve ambiguity with continuous work days:
>
>WorkDays(dDate1,dDate2[,idowFirst[,nDaysWorkOnWeek]])
>
>WorkDays(dDate1,dDate2) = WorkDays(dDate1,dDate2,2,5).
>
>WorkDays(dDate1,dDate2,3,5). && work days : Tuesday - Saturday
>
>***************************************
>
>Function call to resolve ambiguity with not continuous work days:
>
>WorkDays(dDate1,dDate2[,sDaysWorkOnWeekList])
>
>WorkDays(dDate1,dDate2) = WorkDays(dDate1,dDate2,'2,3,4,5,6').
>
>WorkDays(dDate1,dDate2,'2,4,6') && work Monday,Wednesday,Friday
>
>Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform