PowerTip: Use PowerShell to get only the date

Doctor Scripto

Dr Scripto

Summary: Learn how to find only the date by using the Get-Date cmdlet.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily display only the date (not the time)?

Hey, Scripting Guy! Answer Use the Get-Date cmdlet and specify a display hint of date, for example:

Get-Date -DisplayHint date

0 comments

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