>Yes, I saw your thread, and thanks Sergey. I tested it, but if fails in some months. example in Abril/2007 it gives 4 weeks, when it have 5...
>
Correction
lnWeeksPerMonth = MOD(WEEK(GOMONTH(ldFirstOfMonth,1),0,2)+52 - WEEK(ldFirstOfMonth,0,2), 52)
--sb--