DateTime.ToString

Syntax

ToString: String;

Description

The ToString property returns the value of the current variable converted into string type.

Example

Sub UserProc;
Var
    DT: DateTime;
    s: String;
Begin
    DT := DateTime.Parse("01.01.2004 00:00:00");
    s := DT.ToString;
End Sub UserProc;

After executing the example the "s" variable contains the value "01.01.2004 00:00:00".

See also:

DateTime