SELECT the last day of month

suggest change

You can select the last day of month.

SELECT (date_trunc('MONTH', ('201608'||'01')::date) + INTERVAL '1 MONTH - 1 day')::DATE;

201608 is replaceable with a variable.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents