Returns the 4-digit year.

Declaration

YEAR(datetime) -> year
YEAR(date) -> year

Parameters

datetime (type: datetime)
A datetime value to retrieve the year for.
date (type: date)
A date value to retrieve the year for.

Return Values

year (type: number)
The 4-digit year.

Was this article helpful?

0 out of 0 found this helpful

Add comment

Please sign in to leave a comment.