Home  |  Delphi .net Home  |  System.DateTime  |  ToLongDateString Method
ToLongDateString  
Method  
Converts the current DateTime to a long date format string
DateTime Structure
System NameSpace
CF1.  Function ToLongDateString ( ) : String;
CF : Methods with this mark are Compact Framework Compatible
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
 
 
Delphi Programming © Neil Moffatt All rights reserved.  |  Contact the author