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

dxGetDateElement(TDateTime,TcxDateElement) Method

Extracts the day, month or year form the TDateTime type.

#Declaration

Delphi
function dxGetDateElement(ADate: TDateTime; AElement: TcxDateElement): Integer;

#Parameters

Name Type
ADate TDateTime
AElement TcxDateElement

#Returns

Type
Integer

#Remarks

This function extracts the day, month or year portion from the TDateTime type. The result is an integer representing the year, the number of a month or the number of days in a month. The ADateTime argument represents the date/time value from which to extract elements. The AElement argument determines the element to extract.

See the description of the TcxDateElement type for the list of available elements.

See Also