F_LASTDAYMONTH
<< F_FIRSTDAYMONTH | IBExpert UDF Functions | F_FIRSTDAYWEEK >>
F_LASTDAYMONTH
- input/output-compatibility to rFunc (LASTDAYMONTH)
- Compatible with UTF-8
- Input TIMESTAMP date optionally time
- Output TIMESTAMP Date with last day of month as date with time 00:00:00
Example
SELECT '31.01.2019 00:00:00' AS ISCORRECT, F_LASTDAYMONTH('03.01.2019 15:00:00') FROM RDB$DATABASE;
Expected results:
ISCORRECT F_LASTDAYMONTH =================== ========================= 31.01.2019 00:00:00 2019-01-31 00:00:00.0000
Example
SELECT NULL AS ISCORRECT, F_LASTDAYMONTH(NULL) FROM RDB$DATABASE;
Expected results:
ISCORRECT F_LASTDAYMONTH ========= ========================= <null> <null>
back to top of page
<< F_FIRSTDAYMONTH | IBExpert UDF Functions | F_FIRSTDAYWEEK >>