The DATEPART function computes the SAS date value for the date part of a SAS datetime value. The TIMEPART function computes the SAS time value for the time part of a SAS datetime value.
The HMS function computes SAS time values from HOUR, MINUTE, and SECOND time variables.
The DHMS function computes a SAS datetime value from a SAS date value and HOUR, MINUTE, and SECOND time variables.
For more information about these functions, see the section SAS Date, Time, and Datetime Functions.