get year of a date javascript code example
Example 1: Javascript get current year
var currentYear= new Date().getFullYear();
Example 2: get year from date javascript
document.write(new Date().getFullYear());
var currentYear= new Date().getFullYear();
document.write(new Date().getFullYear());