sql convert datetime to year code example
Example 1: sql convert datetime to year
select YEAR(getdate())
/* 2020 */
Example 2: sql convert datetime to year
select YEAR(getdate())
/* 2020 */
select YEAR(getdate())
/* 2020 */
select YEAR(getdate())
/* 2020 */