Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement