0👍
✅
The JavaScript Date
object has all the capabilities of determining the number of days in a given month and year.
Here’s a CodeSandbox Demonstration showing leap years and the number of days for a selected month and year.
Source:stackexchange.com