Using powershell I want to get the week day name (Friday) from a date. Been googling and cant find this one. It so I can do an IF statement to do something if the date is a Friday.
Can anyone help?
Use Get-Date
to produce a DateTime object, then call its DayOfWeek method. For example:
(get-date 01/01/2016).DayOfWeek
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With