Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 17778

PowerTip: Find Day of the Week by Using PowerShell

$
0
0

Summary: Use Windows PowerShell to find the day of the week.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily find the day of the week—for example, Monday,
          Tuesday, or Wednesday?

Hey, Scripting Guy! Answer Use the Get-Date cmdlet to return a DateTime object, and ten select the DayOfTheWeek property:

(get-date).DayOfWeek


Viewing all articles
Browse latest Browse all 17778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>