Returns the year from the given date.
date
date: The date for which the year is to be determined.
Returns an integer representing the year.
int getYear( DateTime date, ) { return date.year; }