SQL - Scalar functions - THIS_QUARTER
The THIS_QUARTER function returns the first day of the quarter that contains the specified date.
The schema is SYSIBM.
The result of the function is DATE. If the argument can be null, the result can be null. If the argument is null, the result is the null value.
Returns the date value of the first day of the quarter of the date specified by the input.
values this_quarter('2007-05-18') Result: 2007-04-01