DATEPART( ) and TIMEPART( ) functions are used to extract the date and time values from the SAS date-time value respectively.
One need to provide the date-time stamp as an argument to these function, then the corresponding function will return the desired part of the given date-time stamp.
This has been demonstrated below;
SAS DATEPART( ) and TIMEPART( ) Functions
It is worth to note that the output shown above is in corresponding formats just because of formats applied in format statement under PROC PRINT. Otherwise SAS internally stores all those values as numbers only.