August 19th, 2013

PowerTip: Use PowerShell to Display Locale-Specific Date

Doctor Scripto
Scripter

Summary: Learn how to use Windows PowerShell to display the date in locale-specific format.

Hey, Scripting Guy! Question How can I use Windows PowerShell to display the day, month, and two-digit year in locale specific format?

Hey, Scripting Guy! Answer Use the Get-Date cmdlet and the –uformat parameter:

get-date -UFormat %x

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.