Get month name by month number - C#

One of the simplest method to get month name from month number that i have implemented just today :) (after a loooong time)


System.Globalization.DateTimeFormatInfo strDateTimeFormatInfoObj = new System.Globalization.DateTimeFormatInfo();
string strMonthName =
strDateTimeFormatInfoObj.GetMonthName(9).ToString();

No comments:

Post a Comment