Course
Simulator
More
Premium
Log in
MySQL Function Reference
Functions
YEAR
YEAR
Returns the year for a specified date
MySQL 8.1
YEAR
(
datetime
)
Examples
MySQL 8.1
SELECT
YEAR
(
"2022-06-16"
)
;