Returns the day of the month from a SAS date value
Category: Date and Time
DAY ( date )
date
specifies a SAS expression that represents a SAS date value.
The DAY function produces an integer from 1 to 31 that represents the day of the month.
The following SAS statements produce this result:
SAS Statements | Results |
---|---|
now=' 05may97' d; | |
d=day(now); | |
put d; | 5 |
Functions:
'MONTH Function' on page 655
'YEAR Function' on page 914