>thanks for your function
>
>I managed my function to work by adding alltrim to month and year fuction
>Also, I find out that using cmonth didt not return da char month number the the month number instead
>
>mAhead = ctod( "01" + "/" + ALLTRIM(STR(MONTH(DATE()))) + "/" + ALLTRIM(STR(YEAR(DATE()))))
>
>
>
>Moises
Your solution is SET date dependent and much harder to maintain. I would just go with the simple and universal solution I provided.
If it's not broken, fix it until it is.
My Blog