[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Converts a TDateTime value to a string using a predefined format.
Source position: line 0
function DateTimeToStr( |
DateTime: TDateTime |
):String; |
DateTime: TDateTime; |
const FormatSettings: TFormatSettings |
):String; |
DateTimeToStr returns a string representation of DateTime using the formatting specified in LongDateTimeFormat. It corresponds to a call to FormatDateTime('c',DateTime) (see formatchars).
None.
|
Return a string representation of a TDateTime value with a given format. |
Program Example3; { This program demonstrates the DateTimeToStr function } Uses sysutils; Begin Writeln ('Today is : ',DateTimeToStr(Now)); Writeln ('Today is : ',FormatDateTime('c',Now)); End.
lazarus-ccr.sourceforge.net |