Friday, December 13, 2013

List Month Names in drop down or combo

Referred URL - http://stackoverflow.com/questions/315301/how-do-i-list-month-names-e-g-for-a-combo

for( int i = 1; i <= 12; i++ ){
  combo.Items.Add(CultureInfo.CurrentCulture.DateTimeFormat.MonthNames[i]);
}

No comments: