WEEKDAY Function


Returns the day of the week from a SAS date value

Category: Date and Time

Syntax

WEEKDAY ( date )

Arguments

date

  • specifies a SAS expression that represents a SAS date value.

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  



SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net