SQL Notebook (logo)

YEAR Function

Returns the year part of a date/time string.

Syntax

YEAR(date)

Arguments

Return Value

An integer representing the specified year.

Examples