@AlfredoPegueroC
Posted
Hello, @vernonroque
With the next function, you can retrieve the days of each month.
function daysInMonth(month, year) {
return new Date(year, month, 0).getDate();
}
I hope it helps.
Marked as helpful
@vernonroque
Posted
@AlfredoPegueroC Thanks for your help! I'll give it a try. All the best! Happy coding :)