RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.YearOf Function

Returns the year represented by a TDateTime value.

Pascal
function YearOf(const AValue: TDateTime): Word;
C++
Word YearOf(const TDateTime AValue);

Call YearOf to obtain the year represented by a specified TDateTime value. YearOf returns a value between 1 and 9999. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!