ToTimeString: String;
The ToTimeString property returns the value of the current variable converted into string type in the HH.MM.SS format.
NOTE. The property is outdated, use the method FormatTime instead.
Sub Main;
Var
DT: DateTime;
s: String;
Begin
DT := DateTime.Parse("01.01.2004 21:10:50");
s := DT.ToTimeString;
End Sub Main;
After executing the example the "s" variable will contain the value "21:10:50".
See also: