Ok, I've been asked one too many times about how to convert a month int value to a short or long month name - so here goes nothing.

 

   1: /// <summary>
   2: /// Start program
   3: /// </summary>
   4: /// <param name="args">Arguaments not required</param>
   5: static void Main(string[] args)
   6: {
   7:     for (int month = 1; month < 13; month++)
   8:     {
   9:         System.Console.WriteLine(GetMonthName(month, true));
  10:     }
  11:  
  12:     System.Console.ReadKey();
  13: }
  14:  
  15: /// <summary>
  16: /// Converts the given month int to month name
  17: /// </summary>
  18: /// <param name="month">month in</param>
  19: /// <param name="abbrev">return abbreviated or not</param>
  20: /// <returns>Short or long month name</returns>
  21: private static string GetMonthName(int month, bool abbrev)
  22: {
  23:     DateTime date = new DateTime(1900, month, 1);
  24:     if (abbrev) return date.ToString("MMM");
  25:     return date.ToString("MMMM");
  26: }