Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function DateTimeToStr(Value: TDateTime): string;
Converts a TDateTime value to a string.
The conversion uses the format specified by the ShortDateFormat global variable for a date part, followed by the time using the format given by the LongTimeFormat global variable.
ShowMessage('Now is ' + DateTimeToStr(Now));
|
Now,
DateToStr,
FormatDateTime,
Date/Time and other International Settings
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|