Get datetime formatting info from a CultureInfo : Culture Format : I18N Internationalization C# Examples


C# Examples » I18N Internationalization » Culture Format »

 

Get datetime formatting info from a CultureInfo









    
using  System;
using  System.Globalization;

class  MainClass
{
    public  static  void  Main()  
    {
        CultureInfo  ci  =  new  CultureInfo("nl-BE");

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

}
    
   
  
   



Output

Long date pattern: dddd d MMMM yyyy


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo I18N Internationalization
» Culture Format