days_in_month function

Get the number of days in the month of a date-time