Days in Month

Get the number of days in a specific month.

Code

General
new Date(year, month, 0).getDate();

Parameters

Year

Month (1-12)

Browser·fetch() may be limited by CORS

More JavaScript Snippets