DateTime dt = dateTimePicker.Value;int year = dt.Yearint month = dt.Month可延伸理解爲cbobox控件中加載年或者月的數字。強制爲int16後便可替代上述日期控件。