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