Any other easier way to bring the year part of a datetime to current year? If not, which one is better performance wise?
Attempt #1:
CAST(DATEPART(MONTH, mydate) AS VARCHAR) + '/' +
CAST(DATEPART(DAY, mydate) AS VARCHAR) + '/' +
CAST(YEAR(GETDATE()) AS VARCHAR) AS DATETIME
Attempt #2:
DATEADD(YEAR, DATEDIFF(YEAR, mydate, GETDATE()), mydate)