NLDATMWw. Format

Converts SAS datetime values to the locale sensitive datetime string as the day of the week and the datetime.
Category: Date and Time
Alignment: left

Syntax

NLDATMWw.

Syntax Description

w
specifies the width of the output field. If necessary, SAS abbreviates the day of week and datetime to fit the format width.
Default:30
Range:16–200

Comparisons

The NLDATMWw. format is similar to the TWMDYw. format except that the NLDATMWw. format is locale-specific.

Example

These examples use the input value of 1361709583, which is the SAS datetime value that corresponds to 12:39:43 p.m. on February 24, 2003.
Statements
Results
----+----1----+----2----+----3
options locale=English_UnitedStates;
data null;
x=put(1361709583,nldatmw.);
y=put(1361709583,nldatmw30.);
z=put(1361709583,nldatmw200.);
run;
Mon, Feb 24, 2003 12:39:43 PM
Mon, Feb 24, 2003 12:39:43 PM
Monday, February 24, 2003 12:39:43 PM
options locale=german_germany;
data null;
x=put(1361709583,nldatmw.);
y=put(1361709583,nldatmw30.);
z=put(1361709583,nldatmw200.);
run;
Mo, 24. Feb 2003 12.39 Uhr
Mo, 24. Feb 2003 12.39 Uhr
Montag, 24. Februar 2003 12.39 Uhr