Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Display date Format for Specific Culture

$
0
0

Summary: Learn how to use Windows PowerShell to display date formatting for a specific culture.

Hey, Scripting Guy! Question How can I use Windows PowerShell to see the short date pattern for a specific culture without
           changing my UI culture settings?

Hey, Scripting Guy! Answer Use the CultureInfo class from System.Globalization, call the GetCultureInfo static method
           while passing a culture number, and choose the ShortDatePattern property from the DateTime 
           format object, for example:

[System.Globalization.CultureInfo]::GetCultureInfo(1031).DateTimeFormat.ShortDatePattern


Viewing all articles
Browse latest Browse all 3333

Trending Articles



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