/ Published in: SQL
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
CREATE OR REPLACE FUNCTION LastDateOfMonth(DATE) RETURNS DATE AS ' SELECT CAST(date_trunc(''month'', $1) + interval ''1 month'' - interval ''1 day'' as date); ' LANGUAGE SQL;
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)