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.TimeToStr(TDateTime) Method

Returns a string representation of the ATime time with the AM or PM suffix if the 12-hour format is applied.

#Declaration

Delphi
class function TimeToStr(const ATime: TDateTime): string; virtual;

#Parameters

Name Type
ATime TDateTime

#Returns

Type
string

#Remarks

Use the TimeToStr method to get the time string with the AM or PM suffix when using the 12-hour format.

The ATime parameter specifies the time to be returned in the string.

The time string has a short form (only hours and minutes).

Note

whether the string returned is in the 12-hour or 24-hour format depends upon the host environment’s settings.

See Also