Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate May 24 celebration date
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01309184
Message ID:
01309189
Vues:
7
>>I am wondering how to calculate the May 24th weekend here in Ontario?
>>I thought it was the Monday closest to the 24th. However this is obviously incorrect as this year it is being celebrated on the 19th, which is the closest Monday before the date, but not the closest Monday...(the 24th is a Saturday this year, which makes the closest Monday the 26th)
>>
>>Now if I look st the next 4 years,
>>2009 the 24th is Sunday, so would it be celebrated on the 25th or like this year on the 18th?
>>2010 the 24th is Monday, so that's when it would be celebrated
>>2011 the 24th is a Tuesday so is it celebrated on the prior Monday?
>>2012 the 24th is a Thursday, so is it celebrated on the prior Monday?
>>
>>So what would be the rule to write in code to calculate this date. Obviously it is not the 4th Monday or 3rd Monday or anything simple like that.
>>
>
>Mike,
>
>According to http://en.wikipedia.org/wiki/Public_holidays_in_Canada, it's "Monday on or before May 24"
Thanks, I keep forgetting about wikipedia for these kind of things. duh...
Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform