Get month name based in int

20 03 2007

for (int i = 1; i <= 12; i++)

{

DateTime date = new DateTime(1,i,1);

DropDownDOBMonth.Items.Add(date.ToString(“MMM”));

}

 

More date formats.


Actions

Information

Leave a comment