dxGetDateElement(TDateTime,TcxDateElement) Method
In This Article
Extracts the day, month or year form the TDateTime type.
#Declaration
Delphi
function dxGetDateElement(ADate: TDateTime; AElement: TcxDateElement): Integer;
#Parameters
Name | Type |
---|---|
ADate | TDate |
AElement | Tcx |
#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