Displaying Locale Specific Formats


This sample describes how to display locale specific information such as dates and numbers with the proper formats using the wwLocaleInfo class. This example also allows you to switch locales and try to see what the formats look like for this locale. This page should display your browser's current locale Id - you can change that to any other locale.

Locale:
Examples: (fr-ca (french Canadian), de-de (German), de-ch (Swiss German)
      Locale ID: en-us | 1033 
        Country: United States 
                 United States 
       Date Sep: / 
    Date Format: MDY 
Currency Symbol: $ 
Currency Locat.: LEFT 
  Decimal Point: . 
  Thousand Sep.: , 
Locale specific Output:
DateTime: 08/29/2008 07:23:54 PM
    Date: 08/29/2008
  Number: 1201.121
Currency:     $10000.00


Powered by Web Connection© West Wind Technologies
Web Connection demo page | Show Code