Listing Available Culture IDs

by Oct 22, 2010

Ever needed to get your hands on some specific culture IDs? Here is how you can create a list:

[System.Globalization.CultureInfo]::GetCultures('WindowsOnlyCultures')

Next, you can use a culture to output information formatted in that culture:

$c = [System.Globalization.CultureInfo]'ar-IQ'
[System.Threading.Thread]::CurrentThread.CurrentCulture = $cGet-Date

You should note that the console character set is not able to display certain characters. You may want to run that command inside the PowerShell ISE or another Unicode-enabled environment.

Twitter This Tip!
ReTweet this Tip!