Converts the SAS datetime value to the datetime value of the specified
locale, and then writes the value as the year.
Category: |
Date and Time
|
Alignment: |
left
|
- w
-
specifies the width of the output field.
This example uses the en_US locale option.
Statements |
Results |
options locale=fr_FR;
data _null_;
dy=today();
dt=datetime();
put "+--- NLDATMYR min=2 default=16 max=200
---+";
put dt nldatmyr.;
put dt nldatmyr2.;
put dt nldatmyr32.;
put dt nldatmyr200.;
run; |
+--- NLDATMYR min=2 default=16 max=200
---+
2008
08
2008
2008 |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.