JDatabaseQuery::year

Used to get a string to extract year from date column.

Usage: $query->select($query->year($query->quoteName('dateColumn')));