PowerTip: Use PowerShell to Display Format for Short Date

Doctor Scripto

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:



Comments are closed. Login to edit/delete your existing comments

Feedback usabilla icon