Data ModelingFunction ListyearOn this pageyearExtracts the year from a date value. Syntax year(<date>) ParameterTypeDescriptiondateDateThe date value to process. Return values Integer Usage Extracts the year from the order creation date. year(orders.created_at) Related functions month weekday hour day week quarter