Product Solutions Support
Try MemSQL

LAST_DAY

Finds the month of the input date, and then returns a date object containing the last day of that month.

LAST_DAY (dateobj)

Arguments

Return Type

Date object. If dateobj is not a valid date, returns NULL.

Examples

memsql> select last_day('2019-01-01 05:06');
+------------------------------+
| last_day('2019-01-01 05:06') |
+------------------------------+
| 2019-01-31                   |
+------------------------------+
Was this article useful?