SyntaxFix
Write A Post
Hire A Developer
Questions
.getDay returns day of week. You need .getDate instead. .getMonth returns values from 0 to 11. You'll need to add 1 to the result to get "human" month number.