DATEPART Function


Extracts the date from a SAS datetime value

Category: Date and Time

Syntax

DATEPART ( datetime )

Arguments

datetime

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

Examples

The following SAS statements produce this result:

SAS Statements

Results

conn=' 01feb94:8:45' dt;

 

servdate=datepart(conn);

 

put servdate worddate.;

February 1, 1994

See Also

Functions:

  • 'DATETIME Function' on page 483

  • 'TIMEPART Function' on page 855




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