Chapter Contents

Previous

Next
MONTH

MONTH



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 SAS 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 2.


Examples

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

1


See Also

Functions:

DAY
YEAR


Chapter Contents

Previous

Next

Top of Page

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