>>Borislav,
>>
>>Try with {^2006/01/30}
>>
>>Since every month has a first, go back to the first of the month, add one month, subtract one day
>>
>>?gomonth(m.d+1-day(m.d), 1) -1
>>
>
>
>After Dragan's posting I realize that (That happens when I post messages only from top of my memory) Check my answer to Dragan for correct function (I use it very successful :-))
THAT is one of the reasons why it pays to have a LastDayOfMonth function. Even something this simple can cause mistakes. Encapsulate the knowledge in that function once and for all.