Function documentationDAYOFWEEK/WEEKOFYEAR/DAYOFMONTH/DAYOFYEAR(t) Locate this document in the navigation structure

 

DAYOFWEEK(t)/WEEKOFYEAR(t)/DAYOFMONTH(t)/DAYOFYEAR(t) are date functions that calculate the following details:

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.

DAYOFWEEK(t)/WEEKOFYEAR(t)/DAYOFMONTH(t)/DAYOFYEAR(t)

t

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