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