Month names in .NET
To get text name of a month from its ordinal number, you can easily use:
CultureInfo.CurrentCulture.DateTimeFormat
.GetMonthName(DateTime.Now.Month);
As it is presented in MSDN, you can get the name of months, days and eras, by the means of the class DateTimeFormat. However, I can not say properly about how it works with eras…
blog comments powered by Disqus