Returns the last day of a given month. May specify the month and year either as a [date] or as -month and -year. Omitting the month chooses current month. Omitting the year choose current year.
Note: Requires [lp_date_leapyear]
Parameters
-date
date, optional
Find the last day of the month of the given date.
-month
integer, optional
Month number (1 - 12) to use, default is current month.
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.
02/06/2006, Bil Corry Possibly
In order to subtract one second, you would have to extract the month and year from the date passed, add one month (and possibly one year if December) to the date, make sure the time is set to midnight, then subtract some delta (I would recommend something safer than one second, like 12 hours), then extract the ->day and return it.
02/05/2006, deco rior Another option
I believe a faster way is typically to get the first of the next month and subtract a second.
Possibly
In order to subtract one second, you would have to extract the month and year from the date passed, add one month (and possibly one year if December) to the date, make sure the time is set to midnight, then subtract some delta (I would recommend something safer than one second, like 12 hours), then extract the ->day and return it.