LAST_DAY

LAST_DAY function (Date & Time) returns the date of the last day of the month that contains the date d.

Syntax

LAST_DAY(d)

Description

Returns the date of the last day of the month that contains the date d.

Example

LAST_DAY(TO_DATE(‘2010-01-04’, ‘yyyy-MM-dd’))

This example returns the value 2010-01-31.