DAYOFWEEK/WEEKOFYEAR/DAYOFMONTH/DAYOFYEAR(t)

DAYOFWEEK(t)/WEEKOFYEAR(t)/DAYOFMONTH(t)/DAYOFYEAR(t) are date functions that provide the following information:

Value t: when used in a function, the expression t (date_or_timestamp_expression) must supply a date, a time stamp, or an alphanumeric value that matches the current date or time stamp format.

Result of the Function

DAYOFWEEK(t)

Numeric value between 1 and 7 (weekday)

The first day is Monday, the second Tuesday, etc.

WEEKOFYEAR(t)

Numeric value between 1 and 53 (calendar week of the specified day)

DAYOFMONTH(t)

Numeric value between 1 and 31 (day of the month of the specified day)

DAYOFYEAR(t)

Numeric value between 1 and 366 (day of the year of the specified day)

t is a NULL value

NULL value