Please let me state an example to clarify my question.
e.g. in jan 2003, there are 5 weeks.
However, for the first week, the number of WEEKDAYS that acutally belong to Jan 2003 is 3.
For the second, third, fourth weeks, the number of WEEKDAYS that actually belong to Jan 2003 is 15 (5 days per week Mon-Fri).
However, for the last week in Jan 2003, the number of WEEKDAYS that actually belong to Jan 2003 is 5.
I am using the logic that SantaMufasa had suggested to calculate Saturday dates. Now, how can I incorporate the above logic into SantaMufasa's logic so that I can also have the number of WEEKDAYS that actually belong to a given month/year in each week.
thanks a ton.