Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DateTimeToText(TDateTime,Boolean) Method

Converts a TDateTime value to a human readable string.

#Declaration

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

#Parameters

Name Type
ADate TDateTime
AFourDigitYearNeeded Boolean

#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