текущий месяц номер
function getMonthNumber(month){ month = month.toLowerCase(); let months = { "march": 3, "april": 4, "may": 5, "june": 6, "july": 7, "august": 8, "september": 9, "october": 10, "november": 11, "december": 12, "january": 1, "february": 2 } return months[month]; } getMonthNumber("january")