Published
- 1 min read
how to get the year in javascript
The solution for this is noted below
how to get the year in javascript
Solution
new Date().getFullYear() // This will get you the current year
Try other methods by searching on the site. That is if this doesn’t work