Entrypoint lastday compatible with UTF-8
Input INTEGER year INTEGER month Output INTEGER last day in the month of a year
Counting starts with 1 (nearly) identcall to F_DAYSOFMONTH, only swapped parameters TestSQL SELECT 29 AS ISCORRECT, F_LASTDAY(2004, 2) FROM RDB$DATABASE; SELECT NULL AS ISCORRECT, F_LASTDAY(NULL, NULL) FROM RDB$DATABASE;