Answers for "get year date in js"

31

Javascript get current year

var currentYear= new Date().getFullYear();
Posted by: Guest on July-25-2019
2

JS date year

var d = new Date();

var n = d.getFullYear();
Posted by: Guest on February-08-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language