SyntaxFix
Write A Post
Hire A Developer
Questions
DateTime.ParseExact(monthName, "MMMM", CultureInfo.CurrentCulture ).Month
Although, for your purposes, you'll probably be better off just creating a Dictionary<string, int> mapping the month's name to its value.
Dictionary<string, int>