Description: Returns the ISO week-numbering year to which the supplied date belongs.
Calling convention: YearOfTheWeek(Date: TDateTime): Integer
Parameters:
Date: Delphi-compatible date/time serial value.
Returns: ISO week-numbering year. NULL returns 0.
Availability: Default.
Example:
WeekYear := YearOfTheWeek(EncodeDate(2010, 1, 3)); // 2009