Previous Page | Next Page

Functions and CALL Routines

DATEPART Function



Extracts the date from a SAS datetime value.
Category: Date and Time

Syntax
Arguments
Examples
See Also

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

TIMEPART Function

Previous Page | Next Page | Top of Page