F_FIRSTDAYWOY

<< F_LASTDAYWEEKISO | IBExpert UDF Functions | F_LASTDAYWOY >>

F_FIRSTDAYWOY

 
  • function from adhoc
  • Compatible with UTF-8
  • Input INTEGER week number, INTEGER year
  • Output TIMESTAMP Date with 1st day of (US)week of the year as date with time 00:00:00

Example

 SELECT '30.12.2018' AS ISCORRECT, F_FIRSTDAYWOY(1, 2019) FROM RDB$DATABASE;

Expected results:

 ISCORRECT              F_FIRSTDAYWOY
 ========== =========================
 30.12.2018 2018-12-30 00:00:00.0000

Example

 SELECT NULL AS ISCORRECT, F_FIRSTDAYWOY(NULL, NULL) FROM RDB$DATABASE;

Expected results:

 ISCORRECT             F_FIRSTDAYWOY
 ========= =========================
 <null>                       <null>

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