Previous Page | Next Page

Formats

MMYYw. Format



Writes date values in the form mmM<yy>yy, where M is the separator and the year appears as either 2 or 4 digits.
Category: Date and Time
Alignment: right

Syntax
Syntax Description
Details
Examples
See Also

Syntax

MMYYw.

Syntax Description

w

specifies the width of the output field.

Default: 7
Range: 5-32
Interaction: When w has a value of 5 or 6, the date appears with only the last two digits of the year. When w is 7 or more, the date appears with a four-digit year.

Details

The MMYYw. format writes SAS date values in the form mmM<yy>yy, where

mm

is an integer that represents the month.

M

is the character separator.

<yy>yy

is a two-digit or four-digit integer that represents the year.


Examples

The following examples use the input value of 16734, which is the SAS date value that corresponds to October 25, 2005.

SAS Statement Results
 
----+----1----+
put date mmyy5.;
10M05
put date mmyy6.;
 10M05
put date mmyy.;
10M2005
put date mmyy7.;
10M2005
put date mmyy10.;
   10M2005


See Also

Format:

MMYYxw. Format

YYMMw. Format

Previous Page | Next Page | Top of Page