| Functions and CALL Routines |
| Category: | Date and Time |
| Syntax | |
| Arguments | |
| Details | |
| Examples |
Syntax |
| WEEKDAY(date) |
| Details |
The WEEKDAY function produces an integer that represents the day of the week, where 1=Sunday, 2=Monday, ..., 7=Saturday.
| Examples |
| SAS Statements | Results |
|---|---|
x=weekday('16mar97'd); put x; |
1 |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.