January 20th, 2015

PowerTip: Use PowerShell to Find Day of Week

Doctor Scripto
Scripter

Summary: Learn how to use Windows PowerShell to find the day of the week.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find which day of the week a specific date will occur?

Hey, Scripting Guy! Answer Use the Get-Date cmdlet, and specify day, month, and year parameters, for example:

Get-Date -Month 2 -Day 14 -Year 2015

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.

Feedback