O'Reilly logo

Start Here!™ Fundamentals of Microsoft® .NET Programming by Rod Stephens

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Locale-Specific Formats

In addition to text and symbols, different cultures use different formats for values such as numbers, currency, percentage, date, and time.

A program must be able to both read and display values in the appropriate format.

Table 12-1 shows examples of some values for the United States (en-US), Great Britain (en-GB), Germany (de-DE), France (fr-FR), and Greece (el-GR).

Table 12-1. Culture-Specific Values

Item

Culture

Result

Currency

en-US

en-GB

de-DE

fr-FR

el-GR

$1,234.56

£1,234.56

1.234,56 €

1 234,56 €

1.234,56 €

Percentage

en-US

en-GB

de-DE

fr-FR

el-GR

123,456.00%

123,456.00%

123.456,00%

123 456,00%

123.456,00%

Short Date

en-US

en-GB

de-DE

fr-FR

el-GR

4/1/2012

01/04/2012

01.04.2012

01/04/2012

1/4/2012

Long Date

en-US

en-GB

de-DE

fr-FR ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required