DateTimeToStr
Converts a TDateTime value to a string.
Structure
DateTimeToStr(DateTime: TDateTime): string;
Parameters
Return Value
Description
DateTimeToString converts the TDateTime value given by DateTime 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.
To change how the string is formatted, change ShortDateFormat and LongTimeFormat global date time formatting variables. |