sql server select current year code example
Example 1: get current year sql
select year(getdate())
Example 2: sql server select furst day of current year
SELECT DATEADD(yy, DATEDIFF(yy, 0, GETDATE()), 0)
select year(getdate())
SELECT DATEADD(yy, DATEDIFF(yy, 0, GETDATE()), 0)