days_in_month(month, year = now.year)
public

Return the number of days in the given month. If no year is specified, it will use the current year.