Skip to main content Skip to complementary content

YEAR

Returns the year from a timestamp value.

Syntax

YEAR(timestamp)

Arguments

Name Type Description Default Value
timestamp timestamp

Returns

bigint


Examples

timestamp Output
timestamp "2018-03-10 08:55:12.456" 2018

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!