vba count number of days for months code example Example: find days in month vba DateTime.DaysInMonth(year, month)