2 points

How to Get Current Year in Javascript


dashboard

Posted by @mishka #javascript

var d = new Date();
var n = d.getFullYear();
content_copy
https://www.w3schools.com/jsref/jsref_getfullyear.asp



LISTS WITH THIS SNIPPET

>> Browse more code snippets

more_vert