Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
ghx-label-5
Description
LAST_DAY(<date>)
Returns the last day of the month in the specified date.
<date> can be DATE or TIMESTAMP
=> select last_day('2017-05-03'); LAST_DAY ------------ 2017-05-31 => select now(), last_day(now()); NOW | LAST_DAY ---------------------+------------ 2017-05-01 17:29:03 | 2017-05-31 (1 row)