Chapter Contents

Previous

Next
DATEPART

DATEPART



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
TIMEPART


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.