| Functions and CALL Routines |
| Category: | Date and Time |
| Syntax | |
| Arguments | |
| Details | |
| Examples | |
| See Also |
Syntax |
| YEAR(date) |
| Details |
The YEAR function produces a four-digit numeric value that represents the year.
| Examples |
| SAS Statements | Results |
|---|---|
date='25dec97'd; y=year(date); put y; |
1997 |
| See Also |
|
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.