SQL Server YEAR() Function
Definition and Usage
The YEAR() function returns the year part for a specified date.
Syntax
YEAR(date)
Parameter Values
Parameter | Description |
---|---|
date | Required. The date or datetime to extract the year from |
Technical Details
Works in: | SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse |
---|
More Examples
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.