F_LASTDAYLASTWEEKISO
<< F_FIRSTDAYLASTWEEKISO | IBExpert UDF Functions | F_FIRSTDAYNEXTQUARTER >>
F_LASTDAYLASTWEEKISO
- function from adhoc
- Compatible with UTF-8
- Input TIMESTAMP date optionally time
- Output TIMESTAMP date of last day of last week (ISO)weekday (Sunday) as date with time 00:00:00
Example
SELECT '27.01.2019' AS ISCORRECT, F_LASTDAYLASTWEEKISO('01.02.2019 15:00:00') FROM RDB$DATABASE;
Expected results:
ISCORRECT F_LASTDAYLASTWEEKISO ========== ========================= 27.01.2019 2019-01-27 00:00:00.0000
Example
SELECT '30.12.2018' AS ISCORRECT, F_LASTDAYLASTWEEKISO('02.01.2019 15:00:00') FROM RDB$DATABASE;
Expected results:
ISCORRECT F_LASTDAYLASTWEEKISO ========== ========================= 30.12.2018 2018-12-30 00:00:00.0000
back to top of page
<< F_FIRSTDAYLASTWEEKISO | IBExpert UDF Functions | F_FIRSTDAYNEXTQUARTER >>