The Month standard format specifier represents a custom date and time format string.
The format string is defined by the current DateTimeFormatInfo.MonthDayPattern property.
The custom format string −
MMMM dd
using System; using System.Globalization; class Demo { static void Main() { DateTime date = new DateTime(2018, 6, 11, 9, 15, 0); Console.WriteLine(date.ToString("m", CultureInfo.CreateSpecificCulture("en-us"))); } }
June 11