>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)