F_LASTDAYLASTQUARTER
<< F_FIRSTDAYLASTQUARTER | IBExpert UDF Functions | F_FIRSTDAYLASTMONTH >>
F_LASTDAYLASTQUARTER
- function from adhoc
- Compatible with UTF-8
- Input TIMESTAMP date optionally time
- Output TIMESTAMP date of last day of last quarter as date with time 00:00:00
Example
SELECT '31.12.2018' AS ISCORRECT, F_LASTDAYLASTQUARTER('27.02.2019 15:00:00') FROM RDB$DATABASE;
Expected results:
ISCORRECT F_LASTDAYLASTQUARTER ========== ========================= 31.12.2018 2018-12-31 00:00:00.0000
Example
SELECT '01.01.2018' AS ISCORRECT, F_LASTDAYLASTQUARTER('27.05.2018 15:00:00') FROM RDB$DATABASE;
Expected results:
ISCORRECT F_LASTDAYLASTQUARTER ========== ========================= 31.03.2018 2018-03-31 00:00:00.0000
back to top of page
<< F_FIRSTDAYLASTQUARTER | IBExpert UDF Functions | F_FIRSTDAYLASTMONTH >>