How does one go about finding the month name in C#? I don\'t want to write a huge switch statement or if statement on the month int. I
switch
if
int
Supposing your date is today. Hope this helps you.
DateTime dt = DateTime.Today; string thisMonth= dt.ToString("MMMM"); Console.WriteLine(thisMonth);