Converts the SAS datetime value to the datetime value of the specified
locale, and then writes the value as the name of the month.
Category: |
Date and Time
|
Alignment: |
left
|
- w
-
specifies the width of the output field.
This example uses the en_US locale option.
Statements |
Results |
data _null_;
dt = datetime();
dy = date();
put "+--- NLDATEMN min=4 default=10 max=200 ---+";
put dt
nldatmmn.;
put dt nldatmmn4.;
put dt nldatmmn10.;
put dt nldatmmn200.;
run; |
+--- NLDATMMN min=4 default=10 max=200 ---+
October
Oct
October
October |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.