Using the CultureInfo
Class
The CultureInfo
class contains information about more than 150 different cultures. You can use the methods of this class in your code to retrieve information about a specific culture and use the information when formatting values such as dates, numbers, and currency amounts.
To represent a culture with the CultureInfo
class, you can instantiate the class by passing a culture name to the class constructor like this:
Dim culture As New CultureInfo("de-DE")
You can also use any of the following methods of the CultureInfo
class to retrieve information about a culture or cultures:
• CreateSpecificCulture
—
Enables you to create a CultureInfo
object by supplying the name of a specific culture.
• GetCultureInfo
—
Enables ...
Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.