year
Returns the year from this datetime expression, as an integer.
Note: Some JDBC drivers, like for MySQL, may return a Date type for this SQL function, following the format YYYY-01-01. To avoid unexpected exceptions in this case, the MySQL connector property yearIsDateType should be set to false. Please check the documentation.