| Formats |
| Category: | Date and Time |
| Alignment: | right |
| Syntax | |
| Syntax Description | |
| Details | |
| Examples | |
| See Also |
Syntax |
| WEEKDAYw. |
| Details |
The WEEKDAYw. format writes a SAS date value as the day of the week (where 1=Sunday, 2=Monday, and so on).
| Examples |
The example table uses the input value of 16469, which is the SAS date value that corresponds to February 2, 2005.
| SAS Statement | Result |
|---|---|
|
|
----+----1 |
put date weekday.; |
4 |
| See Also |
|
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.