How to get complete month name from DateTime


What is the proper way to get the complete name of month of a DateTime object?
e.g. January, December.

I am currently using:

DateTime.Now.ToString("MMMMMMMMMMMMM");

I know it's not the correct way to do it.


Answers:


Use the "MMMM" custom format specifier:

DateTime.Now.ToString("MMMM");