Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many weeks in a month
Message
From
05/11/2007 17:41:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
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:
01266855
Views:
15
>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


See my other reply. If the program is for general distribution, I would definitely store the beginning of each month in a table. This would allow the user to define months as they deem fit.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform