NLDATEYMw. Format

Converts the SAS date value to the date value of the specified locale, and then writes the date value as the year and the name of the month.
Category: Date and Time
Alignment: left

Syntax

NLDATEYMw.

Syntax Description

w
specifies the width of the output field.
Default:16
Range:6–200

Example

This example uses the spanish_Spain locale option.
Statement
Result
options locale=spanihs_Spain;
data_null;
dy=today();
x=put(dy, nldateym.);
y=put(dy, nldateym12.);
z=put(dy, nldateym200.);
run;
agosto de 2010
ago de 10
agosto de 2010

See Also