Description
Evaluates the DateTime value specified and converts it to a Time value.
Arguments
dateTime is a DateTime value.
Action
Evaluates the DateTime value specified and converts it to a Time value.
Examples
DateTimeToTime(#11/01/1998 11:15:00 AM#)
Returns 11:15:00 AM.
Comments
For new formulas, you can use the
CTime or
TimeValue functions instead of DateTimeToTime when converting a DateTime value to a Time value. The CTime and TimeValue functions are more efficient since they are not UFLs.