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

TdxRangeControlDateTimeScale.RoundDate(TDateTime) Method

Rounds the specified date/time value to the beginning of the nearest whole time interval equal to the measurement unit used to graduate the scale.

#Declaration

Delphi
function RoundDate(const ADate: TDateTime): TDateTime; virtual;

#Parameters

Name Type
ADate TDateTime

#Returns

Type
TDateTime

#Remarks

Normally, this function supports the internal infrastructure and is not intended to be used directly from your code. The RoundDate function is called internally by the GetNearestNormalizedAcceptableValue function provided by a Date/Time-based data range selection and visualization model.

If you are implementing a custom date/time scale, you may need to override the RoundDate function in a TdxRangeControlDateTimeScale descendant in order to allow the scale to work with custom measurement units.

See Also