DateTime.TimeOfDay

Syntax

TimeOfDay: DateTime;

Description

The TimeOfDay property returns the time component from the current variable.

Example

Sub Main;

Var

DT, DT1: DateTime;

Begin

DT := DateTime.Parse("30.03.2002 14:15:20");

DT1 := DT.TimeOfDay;

End Sub Main;

After executing this example the "DT" variable will contain date converted from the specified character string. The "DT1" variable will contain time component of the "DT" date.

See also:

DateTime