>Sorry, October 2007 has no 5 weeks (my mistake).
>But, ir order to know what are the months in a year that have 5 weeks (a simply way to know, I have noticed), just see months that have 5 sundays. Example: in 2007 the months that have 5 weeks are:
>Abril, July, September, December.
>
>
>the other ones, bring 4 weeks.
>
>There is a courious thing: in 2004 February had 5 weeks, even being a "short" month.....
>
>So, as I said before I need to apply a function for determine what are those months.
>
>Thanks
>Carlos Burgos
OK, so your definition of a week is that it includes a Sunday, right?