how to return only a year from a date in javascript code example
Example: how to get the year in javascript
new Date().getFullYear(); // This will get you the current year
new Date().getFullYear(); // This will get you the current year