SyntaxFix
Write A Post
Hire A Developer
Questions
In order to comply with boneheaded precedent, getYear() returns the number of years since 1900.
getYear()
Instead, you should call getFullYear(), which returns the actual year.
getFullYear()