Quantcast
Channel: PowerShell, formatting values in another culture - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by Porky for PowerShell, formatting values in another culture

If you already have the culture loaded in your environment, #>Get-Culture LCID Name DisplayName ---- ---- ----------- 1031 de-DE German (Germany) #>Get-UICultureLCID Name DisplayName ---- ----...

View Article


Answer by mklement0 for PowerShell, formatting values in another culture

While Keith Hill's helpful answer shows you how to change a script's current culture on demand (more modern alternative as of PSv3+ and .NET framework v4.6+:[cultureinfo]::CurrentCulture =...

View Article


Answer by Keith Hill for PowerShell, formatting values in another culture

This is a PowerShell function I use for testing script in other cultures. I believe it could be used for what you are after:function Using-Culture ([System.Globalization.CultureInfo]$culture =(throw...

View Article

Answer by stej for PowerShell, formatting values in another culture

I was thinking about how to make it easy and came up with accelerators:Add-type -typedef @" using System; public class InvFloat { double _f = 0; private InvFloat (double f) { _f = f; } private...

View Article

PowerShell, formatting values in another culture

Is there an easy way in PowerShell to format numbers and the like in another locale? I'm currently writing a few functions to ease SVG generation for me and SVG uses . as a decimal separator, while...

View Article

Browsing latest articles
Browse All 5 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>