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

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

#Declaration

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

#Parameters

Name Type
ATime TDateTime

#Returns

Type
string

#Remarks

The returned result is the time string containing hours and minutes without the AM or PM suffix (except for the ATime‘s value of 12), if the 12-hour format is applied.

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

Note

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

See Also