date.lastOfMonth

Syntax date.lastOfMonth (date)

Params date is a valid Frontier date or a string that can be coerced to a date.

Action Returns a date value corresponding to midnight on the last day of the specified month

Returns A date value corresponding to midnight on the last day of the specified month

Examples date.lastOfMonth ("12/25/97")

   » "12/31/97; 12:00:00 AM" // New year's eve

date.lastOfMonth (clock.now ())

   » "4/30/00; 12:00:00 AM"

See Also date.firstOfMonth

date.nextMonth

date.prevMonth

Discuss