how to get month number from month name in c#
how to get month number from month name in c#:
step-1:
inclued this name spaceusing System.Globalization;
step-2:
use this codestring no= Convert.ToString(DateTime.ParseExact("may", "MMMM", CultureInfo.InvariantCulture).Month)
Here instead of "may" you can give your month name.
Comments
Post a Comment