CSharp examples for System:DateTime Month
Returns the full, localized name for the given month
using System.Globalization; using System.Text; using System.Linq; using System.Collections.Generic; using System;/*from w ww . j ava 2 s.c o m*/ public class Main{ /// <summary> /// Returns the full, localized name for the given month /// </summary> /// <param name="month">Number between 1 and 12</param> /// <returns></returns> public static string GetMonthName(int month) { return CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(month); } }