DateTimeFormatInfo.LongDatePattern : DateTimeFormatInfo « System.Globalization « C# / C Sharp by API






DateTimeFormatInfo.LongDatePattern

  


using System;
using System.Globalization;
using System.IO;

class MainClass
{
  public static void Main() 
  {
    CultureInfo ci = new CultureInfo("nl-BE");
    FileStream outStream = File.Create("CultureInfo.txt");
    StreamWriter sw = new StreamWriter(outStream);

    sw.WriteLine("Native Name: " + ci.NativeName);
    sw.WriteLine("English Name: " + ci.EnglishName);

    DateTimeFormatInfo dtfi = ci.DateTimeFormat;
    sw.WriteLine("Long date pattern: " + dtfi.LongDatePattern);

    NumberFormatInfo nfi = ci.NumberFormat;
    sw.WriteLine("Currency symbol: " + nfi.CurrencySymbol);
    sw.WriteLine("Decimal seperator: " + nfi.NumberDecimalSeparator);

    sw.Flush();
    sw.Close();

  }

}

   
    
  








Related examples in the same category

1.DateTimeFormatInfo.CurrentInfo
2.DateTimeFormatInfo.DateSeparator
3.DateTimeFormatInfo.DateTimeFormat
4.DateTimeFormatInfo.GetAllDateTimePatterns
5.DateTimeFormatInfo.TimeSeparator