Check out example codes for "tsql get beginning of year". It will help you in understanding the concepts better.

Code Example 1

SELECT
   DATEADD(yy, DATEDIFF(yy, 0, GETDATE()), 0) AS StartOfYear,
   DATEADD(yy, DATEDIFF(yy, 0, GETDATE()) + 1, -1) AS EndOfYear

Learn ReactJs, React Native from akashmittal.com