Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many weeks in a month
Message
De
05/11/2007 17:45:42
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
05/11/2007 17:32:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01266837
Message ID:
01266857
Vues:
18
>A year has 52 weeks (but somtimes 53)...but that is not the problem...I have a payroll system that pays weekly, and when a month have 5 weeks, do something special

I think we need to go back to your definition of a "month having weeks". First, every month will have more than four weeks, except February of a simple year. Now this obviously doesn't mean that then every month has 5 weeks - are we into decimal or fractional weeks here, or is there any other criterion? How do you know from a calendar whether a month has 4 or 5 weeks?

You say October has 5 weeks. The way I look at the calendar, it has three full weeks, and two partial weeks this year and next year, but will have four full weeks and one partial in 2009 (my week starts on Monday). So - how do you define "week belongs to a month"? Is it "four days in that month, week starting on Monday", or what?

Can't code when one doesn't know the specs.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform