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

TcxSchedulerDateTimeHelper.DateToLongDateStr(TDateTime) Method

Converts the ADate date into a string formatted as a long date.

#Declaration

Delphi
class function DateToLongDateStr(ADate: TDateTime): string; virtual;

#Parameters

Name Type
ADate TDateTime

#Returns

Type
string

#Remarks

Use the DateToLongDateStr method to convert the ADate date into a string. The resulting string is formatted as a long date. For example, if the ADate parameter is set to 03/14/2005 and the long date format is dddd, MMMM dd, yyyy, then the resulting string will be ‘Monday, March 14, 2005’.

The ADate parameter specifies the date to be converted into a string.

Note

as for Windows NT/2000/XP the long date format of the default user locale is used (see the value in the registry subkey HKEY_CURRENT_USER\Control Panel\International\sLongDate). For other platforms the resulting string is formatted according to the long date format given by the Delphi LongDateFormat global variable.

See Also