Skip to main content

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

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