Entrypoint dayofmonth compatible with UTF-8
Input TIMESTAMP date optionally time Output INTEGER day of the month
Counting starts with 1 TestSQL SELECT 23 AS ISCORRECT, F_DAYOFMONTH('23.08.2004') FROM RDB$DATABASE; SELECT NULL AS ISCORRECT, F_DAYOFMONTH(NULL) FROM RDB$DATABASE;