Display: Cloud | List
Most Popular Tags
Results (3 total) All > powershell (x) > system.globalization.cultureinfo (x)
First sample - recoded in PowerShell (Custom Numeric Format Strings)
[double] $value = 123;$value.ToString("00000")# Displays 00123$value = 1.2;$value.ToString("0.00", [System.Globalization.CultureInfo]::InvariantCulture)# Displays 1.20$value.ToString("00.00",[System.Globalization.CultureInfo]::InvariantCulture)# Displays 01.20$value.ToString("00.00", [System.Globalization.CultureInfo]::CreateSpecificCulture("da-DK")) # Displays 01,20$value = .56$val
Last modified by Thomas Lee on 8/7/2012 5:58:28 PM
Sample ReCoded with PowerShell (CultureInfo Class (System.Globalization))
<#.SYNOPSIS This script displays the parent culture of each specific culture using the Chinese language..DESCRIPTION This script looks at each Chineese culture and displays the culture name and the parent. .NOTES File Name : Show-ChineeseParentCulture.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http
Last modified by Thomas Lee on 1/22/2012 4:48:02 PM
GetCultures in CultureInfo - Sample using PowerShell (CultureInfo.GetCultures Method (System.Globalization))
<#.SYNOPSIS This script displays information of cultures on a system..DESCRIPTION This script reimplements an MSDN script using PowerShell. It first gets the cultures then displays them.NOTES File Name : Get-Cultures.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Version 2.0.LINK This script posted to: http://www.pshscripts.blogspot.com MSDN
Last modified by Thomas Lee on 9/1/2010 4:08:05 PM
Page view tracker