DateTime.ToLongDateString

Syntax

ToLongDateString: String;

Description

The ToLongDateString property returns the value of the current variable converted into string type in the "DD.MM.YYYY" format.

Comments

The property is outdated, use the ICultureInfo.FormatLongDate method instead.

Example

Sub Main;

Var

DT: DateTime;

s: String;

Begin

DT := DateTime.Parse("01.01.2004 00:00:00");

s := DT.ToLongDateString;

End Sub Main;

After executing the example the "s" variable will contain the value "01.01.2004".

See also:

DateTime | ICultureInfo.FormatLongDate