Back to Devexpress

DateTimeToText(TDateTime,Boolean) Method

vcl-cxdateutils-dot-datetimetotext-x28-c9b03e42-x29.md

latest1.1 KB
Original Source

DateTimeToText(TDateTime,Boolean) Method

Converts a TDateTime value to a human readable string.

Declaration

delphi
function DateTimeToText(ADate: TDateTime; AFourDigitYearNeeded: Boolean = False): string;

Parameters

NameType
ADateTDateTime
AFourDigitYearNeededBoolean

Returns

Type
string

Remarks

Use the DateTimeToText function to convert the TDateTime type data to a human readable string. The ADate parameter represents the TDateTime type to convert. The conversion manner depends on the TcxFormatController.UseDelphiDateTimeFormats property value.

See Also

cxDateUtils Unit