System.TDateTime.DateTimeString
C++
System::String __fastcall DateTimeString() const;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | systdate.h | System | TDateTime |
Description
Converts the TDateTime value to a string.
DateTimeString returns an AnsiString object containing the date and time value (the Val data member) of the TDateTime object to a string. DateTimeString converts the 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.