Open doctordns opened 3 years ago
To get the day of the week, you use the DateTime's DayOfWeek property, or if you want a numeric result, use value__
DayOfWeek
value__
Link to the post in the old blog: https://devblogs.microsoft.com/scripting/how-can-i-determine-the-day-of-the-week/
Description of what needs to be changed: Get a date in the past sho getting the date using Get-Date. Then, get Day of Weel and the value
Summary of the update request
To get the day of the week, you use the DateTime's
DayOfWeek
property, or if you want a numeric result, usevalue__
Link to the post in the old blog: https://devblogs.microsoft.com/scripting/how-can-i-determine-the-day-of-the-week/
Description of what needs to be changed: Get a date in the past sho getting the date using Get-Date. Then, get Day of Weel and the value