>Hello at alls.
>How can I get the last month day.?
>For example if I send to the program 01-20-2001
>The system should know that the last day month is 31.
>TIA
FUNCTION lastDay
LPARAMETERS pdDate
RETURN gomonth(date(year(pdDate), month(pdDate), 1), 1)-1
ENDFUNC
HTH,
- Erik Niese-Petersen
Crazy Dane in USA.