Currency Formatting using Culture Name

I’ve been trying to figure out a way to format monetary values based on the ISO Currency Symbol which is are 3 letter string like: USD, AUD, CRC, EUR; that define a currency.

In .NET the RegionInfo class contains an ISOCurrencySymbol property which returns the Currency Symbol for the given region. Now on my system there are seven regions that have “USD” and I can’t use that to format monetary values.

A RegionInfo is constructed takes a culture string like “ar”, “ar-DZ", “en”, “en-US” etc. and each of these cultures has a specific Currency Symbol. So to format a monetary value we only need the culture string/name.

With the Culture Code we can get all the RegionInfo as well as the benefits of being able to format the currency suitably.

Code Example Available Here

The DoCulture method (badly named) shows how to get relevant RegionInfo like the ISO currency symbol as well as how to format based on the culture.

Advertisements
Posted in Uncategorized. Tags: . 2 Comments »

2 Responses to “Currency Formatting using Culture Name”

  1. nabh7 Says:

    It was a awe-inspiring post and it has a significant meaning and thanks for sharing the information.Would love to read your next post too……

    Thanks

    Regards:
    ISO 9001

  2. ISO 9001 Says:

    Very good post, I was really searching for this topic, as I wanted this topic to understand completely and it is also very rare in internet, that is why it was very difficult to understand.

    Thank you for sharing this.

    regards:
    ISO 9001


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: