.Net Links

Friday, March 18, 2011

Display MonthName from the integer value

//Include this namespace
using System.Globalization;

int i=1;
// The below line displays January
CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(1);

Labels: , , ,