MONTH Function


Returns the month from a SAS date value

Category: Date and Time

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 12.

Examples

SAS Statements

Results

  date='25jan94'd;   m=month(date);   put m;  
  1  

See Also

Functions:

  • 'DAY Function' on page 483

  • 'YEAR Function' on page 914




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net