There is a ComboBox that stores the months of the year in text format. How can I write the number of the month in DataTime?
Wherever the month is added to the list, I cannot save the month number I need right away, because I need a user's choice.
for (int i = 1; i <= 12; i++) { cmbMonth.Items.Add(now.ToString("MMMM")); now = now.AddMonths(1); cmbMonth.Text = DateTime.Now.ToString("MMMM"); } It is necessary to get the name of the month from cmbMonth.Text order to record the full date selected by the user. But since the month is stored as text, problems have arisen. How can you solve? (Write a cycle with months and their numbers is not an option, since the text of the month in the ComboBox depends on the language of the system)


