Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program to determine holidays
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00430637
Message ID:
00582887
Vues:
21
>>I did a search for this and the answer was "no", but the question was asked a year and a half ago, so I'm trying again. :)
>>
>>Anyway, has anyone written a program that will take in a date and return a holiday if it is one? I only need US holidays.
>>
>>And, yes, I know there are various algorithms for Easter and such out there. I'll write my own if necessary, but it seems as though someone would have done this already.
>>
>>Thanks,
>>
>Michelle,
>
>I wouldn't try to calculate holidays. Yes, the movable ones such as Labor Day and Thanksgiving can be calculated. However, not all businesses observe all holidays. Here at Shaw, we get Good Friday off, but not Columbus day, for example. Further, some companys give one day off for Thanksgiving and some two. A better solution, IMO, is to use a table to store the dates then modify it as required.

If these Holidays have some predefined rules (like first Monday on September, for example), they can be calculated. I'm not talking about Easter now (BTW, remeber, I sent you a program written my husband to calculate Pesah date?)
...

Thanks.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform