Determines the specific cultures that use the Chinese language, and displays the parent culture : DateTimeFormatInfo « Date Time « C# / C Sharp






Determines the specific cultures that use the Chinese language, and displays the parent culture

  

using System;
using System.Globalization;

public class SamplesCultureInfo
{
   public static void Main()
   {
      foreach (CultureInfo ci in CultureInfo.GetCultures(CultureTypes.SpecificCultures))
      {
         if (ci.TwoLetterISOLanguageName == "zh")
         {
            Console.Write("0x{0} {1} {2,-40}", ci.LCID.ToString("X4"), ci.Name, ci.EnglishName);
            Console.WriteLine("0x{0} {1} {2}", ci.Parent.LCID.ToString("X4"), ci.Parent.Name, ci.Parent.EnglishName);
         }
      }
   }
}

   
    
  








Related examples in the same category

1.CultureInfo Provides information about a specific culture
2.Gets or sets a DateTimeFormatInfo that defines the culturally appropriate format of displaying dates and times.
3.Gets the list of calendars that can be used by the culture.
4.Custom Date and Time Format Strings
5.DateTimeFormatInfo Class
6.DateTimeFormatInfo.AbbreviatedMonthGenitiveNames
7.DateTimeFormatInfo.FullDateTimePattern
8.ALL the patterns
9.DateTimeFormatInfo.LongDatePattern
10.DateTimeFormatInfo.LongTimePattern
11.DateTimeFormatInfo.MonthDayPattern
12.DateTimeFormatInfo.RFC1123Pattern
13.DateTimeFormatInfo.ShortDatePattern
14.DateTimeFormatInfo.ShortTimePattern
15.DateTimeFormatInfo.SortableDateTimePattern
16.DateTimeFormatInfo.UniversalSortableDateTimePattern
17.DateTimeFormatInfo.YearMonthPattern
18.To Short Date Time
19.To Date Time from dmtf date