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