I have a comboBox with all of the months in it.
What I need to know is the number of days in the chosen month.
var month = cmbMonth.SelectedIndex + 1;
DateTime date = Convert.ToDateTime(month);
So if a user selects January, I need to save 31 to a variable.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…