Playing with Get-Culture and System.Globalization.CultureInfo

The Get-Culture cmdlet shows you the current system “culture”. Culture is the stuff that defines the date formatting, number formatting, UI language, etc of your computer. Usually you set it in the Control Panel under Language/ Regional Settings, or when installing the OS.

The output is of the .NET type System.Globalization.CultureInfo and has some useful static methods.

Using the Get-Culture cmdlet I can check out the date-time format on any system:

Similarly I can check the number format, get the friendly name of the culture, etc.

I am more interested in the class itself: System.Globalization.CultureInfo. Let’s examine its members again:

Particularly useful is the ability to examine another culture and then use the methods of that culture object to learn more about it:

More later!