Get the Current Year in JavaScript or Node.js
The JavaScript engine comes with a global Date class. Interacting with dates is an essential part of programming. JavaScript’s Date comes with two methods to retrieve the current year: Date#getYear and Date#getFullYear. This tutorial shows you what to look out for when using one or another and …
Continue Reading