Convert Number to Month Name - C#

Convert Number to Month Name - C#

code snippet

c#
// get Full Month Name
int intMonthNumber = 1;  // between 1 ~ 12
new DateTime(2017, intMonthNumber, 1).ToString("MMMM");

// get Month Name in 3 Letters
new DateTime(2017, intMonthNumber, 1).ToString("MMM");

"Wonder rather than doubt is the root of all knowledge"

Contact me!

Have questions? Feel free to use the form or send me an email with any questions.

I will be responsive to your requests and your questions.