F_FIRSTDAYMONTH

<< F_LASTDAYQUARTER | IBExpert UDF Functions | F_LASTDAYMONTH >>

F_FIRSTDAYMONTH

 
  • input/output-compatibility to rFunc (FIRSTDAYMONTH)
  • Compatible with UTF-8
  • Input TIMESTAMP date optionally time
  • Output TIMESTAMP Date with 1st day of month as date with time 00:00:00

Example

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

Expected results:

 ISCORRECT                     F_FIRSTDAYMONTH
 =================== =========================
 01.01.2019 00:00:00 2019-01-01 00:00:00.0000

Example

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

Expected results:

 ISCORRECT           F_FIRSTDAYMONTH
 ========= =========================
 <null>                       <null>

back to top of page
<< F_LASTDAYQUARTER | IBExpert UDF Functions | F_LASTDAYMONTH >>