RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDateTime::DateTimeString Method

Converts the System::TDateTime::TDateTime value to a string.

Pascal
function DateTimeString: System::String;
C++
__fastcall System::String DateTimeString() const;

System::TDateTime::DateTimeString returns an AnsiString object containing the date and time value (the Val data member) of the System::TDateTime::TDateTime object to a string. System::TDateTime::DateTimeString converts the System::TDateTime::TDateTime value using the format given by the ShortDateFormat global variable, followed by the time using the format given by the LongTimeFormat global variable. The time is not displayed if the fractional part of the DateTime value is zero. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!