Description |
The ToLongDateString returns a string representation of the current DateTime value. The format is the long date format, with no time values.
It is equivalent to ToString('D');
|
|
Microsoft MSDN Links |
System
System.DateTime
|
|
|
A simple example |
program Project1;
{$APPTYPE CONSOLE}
var
when : DateTime;
begin
when := DateTime.Create(2004, 6, 20); // 20th June 2004
Console.WriteLine(when.ToLongDateString);
Console.ReadLine;
end.
| Show full unit code | 20 June 2004
|
|
|
|