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

PowerTip: Use PowerShell to Display Format for Short Date

$
0
0

Summary: Use Windows PowerShell to display the culture-specific format for a short date.

Hey, Scripting Guy! Question How can I use Windows PowerShell to display the format of a short date that is specific to the culture settings
           of my system?

Hey, Scripting Guy! Answer Use the Get-Culture cmdlet and select the DateTimeFormat and ShortDatePattern properties:

(Get-Culture).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>