Appearance
Flow documentation · legacy product
function YearOf( const AValue : TDateTime) : Word
procedure OnMapEvent(var Value:Variant); begin Value := YearOf(Date); //if date is 2009-06-25 then result is 2009 end;
Returns the number of the year represented by the given date value.