February 9th, 2016

PowerTip: Use PowerShell to get only the date

Doctor Scripto
Scripter

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

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.