Chapter Contents

Previous

Next
MONTHw.

MONTHw.


Writes date values as the month of the year

Category: Date and Time
Alignment: right


Syntax
Syntax Description
Details
Examples
See Also

Syntax

MONTHw.

Syntax Description

w
specifies the width of the output field.
Default: 2
Range: 1-32


Details

The MONTHw. format writes the month (01 through 12) of the year from a SAS date value.


Examples

The example table uses the input value of 13826, which is the SAS date value that corresponds to November 8, 1997.

SAS Statements Results


----+----1

put date month.;

11


See Also

Format:

MONNAMEw.


Chapter Contents

Previous

Next

Top of Page

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.