new Date(toDay.getFullYear(), 0, 1, 0, 0, 1) code example
Example 1: Javascript get current year
var currentYear= new Date().getFullYear();
Example 2: how to get the year in javascript
new Date().getFullYear(); // This will get you the current year