Culture formatting : Culture Format : I18N Internationalization C# Examples


C# Examples » I18N Internationalization » Culture Format »

 

Culture formatting









    
using  System;
using  System.Globalization;

class  MainClass
{
    public  static  void  Main()  
    {
        DateTime  dtNow  =  DateTime.Now;
        Double  curOriginal  =  12345.67;

        CultureInfo  ci2  =  new  CultureInfo("en-GB");
        string  sLocalizedDate2  =  dtNow.ToString("d",  ci2);
        string  sLocalizedCur2  =  curOriginal.ToString("c",  ci2);

        Console.WriteLine(sLocalizedDate2);
        Console.WriteLine(sLocalizedCur2);
    }
}
    
   
  
   



Output

25/03/2007
?12,345.67


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo I18N Internationalization
» Culture Format