LAST_DAY()
Returns the last day of a time period containing a datetime value
DATE, TIMESTAMP (with or without time zone)
LAST_DAY(OF <period> FROM date_or_timestamp) <period> ::= YEAR | MONTH | QUARTER | WEEK
| Parameter | Description | 
|---|---|
| date_or_timestamp | Expression of type  | 
LAST_DAY returns a date or timestamp (same as the type of date_or_timestamp) with the last day of the year, month or week of a given date or timestamp value.
| Note | 
 |