Answers for "c# reading months as int"

C#
4

c# reading months as int

int month = DateTime.ParseExact(MonthNameStr, "MMMM", CultureInfo.CurrentCulture ).Month
Posted by: Guest on August-06-2020
0

c# reading months as int

int  month = DateTimeFormatInfo.CurrentInfo.MonthNames.ToList().IndexOf(MonthNameStr) + 1;
Posted by: Guest on March-14-2022

C# Answers by Framework

Browse Popular Code Answers by Language