DateTimeFormatInfo.AbbreviatedMonthGenitiveNames
using System;
using System.Globalization;
class Sample
{
public static void Main()
{
string[] myDateTimePatterns = new string[] {"MM/dd/yy", "MM/dd/yyyy"};
CultureInfo ci = new CultureInfo("en-US");
DateTimeFormatInfo dtfi = ci.DateTimeFormat;
foreach (string name in dtfi.AbbreviatedMonthGenitiveNames)
{
Console.WriteLine("\"{0}\"", name);
}
}
}
/*
"Jan"
"Feb"
"Mar"
"Apr"
"May"
"Jun"
"Jul"
"Aug"
"Sep"
"Oct"
"Nov"
"Dec"
""
*/
Related examples in the same category