Entrypoint lastdaymonth compatible with UTF-8
Input TIMESTAMP date optionally time Output TIMESTAMP Date with last of the month as date with time 00:00:00
TestSQL SELECT '31.01.2007 00:00:00' AS ISCORRECT, F_LASTDAYMONTH('03.01.2007 15:00:00') FROM RDB$DATABASE; SELECT NULL AS ISCORRECT, F_LASTDAYMONTH(NULL) FROM RDB$DATABASE;