"DateTime to Time" converts the time component of a DateTime value to a Time value .

Syntax

DTTOT(<dtVar>)

<dtVar>

A DateTime variable or value

Description

Use DTTOT( ) to convert the time component of a DateTime value to a Time value. DTTOT( ) has no affect on the DateTime's date component. Where the current value of DATETIME( ) = 02/13/01 03:39:14 PM:

 t1=DATETIME()  

 t2=DTTOT(t1)

 ?t2      //Yields 03:39:14 PM

SET HOURS determines whether times are displayed in military format, or with an AM/PM indicator.