DateTime Format: %M
using System; using System.Globalization; public class Example { public static void Main() { DateTime date1 = new DateTime(2009, 9, 8); Console.WriteLine(date1.ToString("%M")); // Displays 9 } } //9