Previous Page | Next Page

Formats for NLS

NLDATMYRw. Format



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

Syntax
Syntax Description
Examples

Syntax

NLDATMYRw.

Syntax Description

w

specifies the width of the output field.

Default: 16
Range: 2-200

Examples

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

Previous Page | Next Page | Top of Page