Check out example codes for ") Write a SQL statement to get the first day and last day of the current year". It will help you in understanding the concepts better.

Code Example 1

SELECT DATEFROMPARTS(YEAR(GETDATE()), 1, 1) AS 'First Day of Current Year';
SELECT DATEFROMPARTS(YEAR(GETDATE()), 12, 31) AS 'End of Current Year';

Learn ReactJs, React Native from akashmittal.com