how to get month name from month number in c#
how to get month name from month number in c#:
using System.Globalization;
string month=CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(1)
Here 1 is for january month.You can give numbers(1 to 12) as per your need.
step-1:
use this name spaceusing System.Globalization;
step-2:
use the bleow codestring month=CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(1)
Here 1 is for january month.You can give numbers(1 to 12) as per your need.
Comments
Post a Comment