year()

Examples


The year() function returns the year portion of a given date value. The returned value will be a four-digit year, such as 1998.

Syntax

year(date)

Parameters

date – A date or datetime value.

Return value

Integer


Documentation Feedback