this year js new date code example
Example 1: get year from date javascript
document.write(new Date().getFullYear());
Example 2: new date parameters javascript
// new Date parameters in javascript
new Date(year, month, date, hours, minutes, seconds, ms)