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

PowerTip: Find Day of the Week with PowerShell

$
0
0

Summary: Find the day of the week by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find what day of the week a particular date falls on?

Hey, Scripting Guy! Answer Access the DayOfWeek property from the DateTime object:

(get-date).dayofweek


Viewing all articles
Browse latest Browse all 34890

Trending Articles



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