Extracts the date from a SAS datetime value
Category: Date and Time
DATEPART ( datetime )
datetime
specifies a SAS expression that represents a SAS datetime value.
The following SAS statements produce this result:
SAS Statements | Results |
---|---|
conn=' 01feb94:8:45' dt; | |
servdate=datepart(conn); | |
put servdate worddate.; | February 1, 1994 |
Functions:
'DATETIME Function' on page 483
'TIMEPART Function' on page 855