How to Get Current Month in String Format in C#/CSharp

To get current month in string in C#/CSharp, we make use of DateTime class.  Example is given below.

using System;

namespace Hello_World
{

    class Program
    {
        static void Main(string[] args)
        {
            DateTime current = DateTime.Now;

            Console.WriteLine(current.ToString("MMMM"));
        }
    }
}
;

 

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •