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);

DateUtils

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

 

DecodeDate 

DayOf 

MilliSecondOf 

MinuteOf 

HourOf 

RecodeDateYear 

SecondOf 

WeekOf 

MonthOf

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!