Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Work days between two dates - finally!
Message
De
08/06/2003 00:25:48
Mike Yearwood
Toronto, Ontario, Canada
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00797684
Message ID:
00797720
Vues:
39
Hi Nadya

I intend no offence, but IMO checking for holidays should be a separate function. That way one could always check what holidays are coming up in the next month. This separate function can be called from the workdays routine by passing in the same date parameters.


>You're not checking for the Holidays either...
>
>>Excellent point! I will try to adjust for years. Thanks for the critique.
>>
>>Glenn
>>
>>>Glenn,
>>>
>>>That code will fail if the dates cross a year boundary or are more than a year apart.
>>>
>>>>I needed a solution to determine the number of workdays between two dates and have not been satisfied with the prevalent techniques.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform