MONTHw. Format

Writes SAS date values as the month of the year.

Category: Date and Time
Alignment: Right

Syntax

MONTHw.

Arguments

w

specifies the width of the output field.

Default 2
Range 1–32

Details

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

Example

The example table uses the input value of 19431, which is the SAS date value that corresponds to March 14, 2014.
Statements
Results
 
----+----1
select put(19431,month.);
3

See Also

Formats:
Last updated: February 23, 2017