Get months names using CultureInfo C#

To get the month names using a given Culture Info in a simple select list

var monthOfBirthValues = new List();
monthOfBirthValues.Add(new SelectListItem 


    Text = CultureInfo.GetCultureInfo("ar-KW").DateTimeFormat.GetMonthName(i), 
   Value = i.ToString(CultureInfo.InvariantCulture) 
});

Comments