Returns the month from a SAS date value
Category: Date and Time
MONTH ( date )
date
specifies a SAS expression that represents a SAS date value.
The MONTH function returns a numeric value that represents the month from a SAS date value. Numeric values can range from 1 through 12.
SAS Statements | Results |
---|---|
date='25jan94'd; m=month(date); put m; | 1 |
Functions:
'DAY Function' on page 483
'YEAR Function' on page 914