Function for last date of a month ?

make

Member
Hi Peggers,

iam still looking for a function or something else, wich can retrurn the last date of a month.
For example : the last date from January ist the 31.

Thanks for help !

make
 
Enjoy!

function GetEOM return date
(input dt as date):

return ( (date(month(dt),28,year(dt)) + 4) -
day(date(month(dt),28,year(dt)) + 4)
).

end. /* GetEOM */
 
Top