F_FIRSTDAYWEEK
<< F_LASTDAYMONTH | IBExpert UDF Functions | F_LASTDAYWEEK >>
F_FIRSTDAYWEEK
- function from adhoc
- Compatible with UTF-8
- Input TIMESTAMP date optionally time
- Output TIMESTAMP Date with 1st day of (US) weekday (Sunday) as date with time 00:00:00
Example
SELECT '30.12.2018' AS ISCORRECT, F_FIRSTDAYWEEK('03.01.2019 15:00:00') FROM RDB$DATABASE;
Expected results:
ISCORRECT F_FIRSTDAYWEEK ========== ========================= 30.12.2018 2018-12-30 00:00:00.0000
Example
SELECT NULL AS ISCORRECT, F_FIRSTDAYWEEK(NULL) FROM RDB$DATABASE;
Expected results:
ISCORRECT F_FIRSTDAYWEEK ========= ========================= <null> <null>
back to top of page
<< F_LASTDAYMONTH | IBExpert UDF Functions | F_LASTDAYWEEK >>