Previous Page | Next Page

Functions and CALL Routines

MONTH Function



Returns the month from a SAS date value.
Category: Date and Time

Syntax
Arguments
Details
Examples
See Also

Syntax

MONTH(date)


Arguments

date

specifies a numeric constant, variable, or expression that represents a SAS date value.


Details

The MONTH function returns a numeric value that represents the month from a SAS date value. Numeric values can range from 1 through 12.


Examples

SAS Statements Results
date='25jan94'd;
m=month(date);
put m;
 

1


See Also

Functions:

DAY Function

YEAR Function

Previous Page | Next Page | Top of Page