F_FIRSTDAYNEXTQUARTER

<< F_LASTDAYLASTWEEKISO | IBExpert UDF Functions | F_LASTDAYNEXTQUARTER >>

F_FIRSTDAYNEXTQUARTER

 
  • function from adhoc
  • Compatible with UTF-8
  • Input TIMESTAMP date optionally time
  • Output TIMESTAMP date of 1st day of next quarter as date with time 00:00:00

Example

 SELECT '01.04.2019' AS ISCORRECT, F_FIRSTDAYNEXTQUARTER('01.02.2019 15:00:00') FROM RDB$DATABASE;

Expected results:

 ISCORRECT      F_FIRSTDAYNEXTQUARTER
 ========== =========================
 01.04.2019 2019-04-01 00:00:00.0000

Example

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

Expected results:

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

back to top of page
<< F_LASTDAYLASTWEEKISO | IBExpert UDF Functions | F_LASTDAYNEXTQUARTER >>