WEEKDAYw. Format

Writes SAS date values as the day of the week.

Category: Date and Time
Alignment: Right

Syntax

WEEKDAYw.

Arguments

w

specifies the width of the output field.

Default 1
Range 1–32

Details

The WEEKDAYw. format writes a SAS date value as the day of the week (where 1=Sunday, 2=Monday, and so on).

Example

The example table uses the input value of 19405, which is the SAS date value that corresponds to February 16, 2013.
Statements
Results
 
----+----1
select put(19405,weekday.);
7

See Also

Formats:
Last updated: February 23, 2017