Easy Way to Get the Number of Days in a Month

Working with dates in JavaScript has a bit of a reputation for being messy. The Date object isn’t the most intuitive thing in the language…