Previous Page
|
Next Page
WEEKDAY
w
. Format
Writes date values as the day of the week.
Category:
Date and Time
Alignment:
right
Syntax
Details
Example
See Also
Syntax
WEEKDAY
w
.
Syntax Description
w
specifies the width of the output field.
Default:
1
Range:
1–32
Details
The WEEKDAY
w
. 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 19025, which is the SAS date value that corresponds to February 2, 2012.
SAS Statement
Result
----+----1
put date weekday.;
5
See Also
Formats:
DOWNAMEw. Format
Copyright © SAS Institute Inc. All rights reserved.
Previous Page
|
Next Page
|
Top of Page