F_FIRSTDAYWEEKISO

<< F_LASTDAYWEEK | IBExpert UDF Functions | F_LASTDAYWEEKISO >>

F_FIRSTDAYWEEKISO

 
  • function from adhoc
  • Compatible with UTF-8
  • Input TIMESTAMP date optionally time
  • Output TIMESTAMP Date with 1st day of (ISO) weekday (Monday) as date with time 00:00:00

Example

 SELECT '31.12.2018' AS ISCORRECT, F_FIRSTDAYWEEKISO('03.01.2019 15:00:00') FROM RDB$DATABASE;

Expected results:

 ISCORRECT          F_FIRSTDAYWEEKISO
 ========== =========================
 31.12.2018 2018-12-31 00:00:00.0000

Example

 SELECT NULL AS ISCORRECT, F_FIRSTDAYWEEKISO(NULL) FROM RDB$DATABASE

Expected results:

 ISCORRECT         F_FIRSTDAYWEEKISO
 ========= =========================
 <null>                       <null>

back to top of page
<< F_LASTDAYWEEK | IBExpert UDF Functions | F_LASTDAYWEEKISO >>