| Functions and CALL Routines |
| Category: | Date and Time |
| Syntax | |
| Arguments | |
| Details | |
| Examples | |
| See Also |
Syntax |
| MONTH(date) |
| Details |
The MONTH function returns a numeric value that represents the month from a SAS date value. Numeric values can range from 1 through 12.
| Examples |
| SAS Statements | Results |
|---|---|
date='25jan94'd; m=month(date); put m; |
1 |
| See Also |
|
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.