Back to Devexpress

dxGetDateElement(TDateTime,TcxDateElement) Method

vcl-cxdateutils-dot-dxgetdateelement-x28-e9befe2d-x29.md

latest1.2 KB
Original Source

dxGetDateElement(TDateTime,TcxDateElement) Method

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

Declaration

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

Parameters

NameType
ADateTDateTime
AElementTcxDateElement

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

cxDateUtils Unit