2 points

How to Get Current Year in Javascript


dashboard

Posted by @mishka #javascript

var d = new Date();
var n = d.getFullYear();
content_copy Copy

https://www.w3schools.com/jsref/jsref_getfullyear.asp