RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDateTime::TimeString Method

Converts the System::TDateTime::TDateTime object to an AnsiString.

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

System::TDateTime::TimeString returns an AnsiString object containing the time value (the fractional portion of the Val data member) of the System::TDateTime::TDateTime object to a string. The conversion uses the format specified by the LongTimeFormat variable. Change the format of how the string is displayed by changing the value of one or more of the date/time formatting variables. 

 

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