DAY Function


Returns the day of the month from a SAS date value

Category: Date and Time

Syntax

DAY ( date )

Arguments

date

  • specifies a SAS expression that represents a SAS date value.

Details

The DAY function produces an integer from 1 to 31 that represents the day of the month.

Examples

The following SAS statements produce this result:

SAS Statements

Results

now=' 05may97' d;

 

d=day(now);

 

put d;

5

See Also

Functions:

  • 'MONTH Function' on page 655

  • '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