Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many weeks in a month
Message
From
05/11/2007 17:45:42
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
05/11/2007 17:32:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01266837
Message ID:
01266857
Views:
17
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform