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

TdxRangeControlDateTimeAutoFormatHelper.FormatQuarter(TDateTime,Integer) Method

Returns the specified date/time value formatted as a Unicode string ready to display as the corresponding header of the scale graduated in quarters of a year.

#Declaration

Delphi
class function FormatQuarter(const ADate: TDateTime; AFormatId: Integer): string; virtual;

#Parameters

Name Type
ADate TDateTime
AFormatId Integer

#Returns

Type
string

#Remarks

Normally, this function supports the internal infrastructure and is not intended to be used directly from your code. The FormatQuarter class function is called internally by the GetDisplayText function of a predefined header scale, provided that the scale is graduated in quarters of a year.

The ADate and AFormatId parameters are used to pass the date/time value that needs to be formatted and the required index in the list of formatting variants supported by the scale graduated in quarters of a year. To identify the number of supported variants, call the GetFormatCount class function passing rcduQuarter as the AScaleUnit parameter value.

See Also