Skip to main content

dxGetDateElement(TDateTime,TcxDateElement) Method

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

Declaration

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