sql get current date only code example
Example 1: get current year sql
select year(getdate())
Example 2: sql server format datetime to short date
CONVERT ( data_type [ ( length ) ] , expression [ , style ] )
select year(getdate())
CONVERT ( data_type [ ( length ) ] , expression [ , style ] )