DB2 Scalar functions - DAYOFWEEK
The DAYOFWEEK function returns the day of the week in the first argument as an integer value. The integer value is in the range 1-7, where 1 represents the first day of the week, as specified in the second argument.
The schema is SYSIBM. The SYSFUN version of the DAYOFWEEK function continues to be available.
The result of the function is INTEGER. If any argument can be null, the result can be null; if any argument is null, the result is the null value.