![](/style/images/good.png)
![](/style/images/bad.png)
Use PowerShell to Figure Out "What day of the week is it 39 (or some other...
source link: https://thomasrayner.ca/use-powershell-to-figure-out-what-day-of-the-week-is-it-39-or-some-other-number-days-from-now/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Use PowerShell to Figure Out "What day of the week is it 39 (or some other number) days from now?"
There’s lots of fun things you can do with datetime objects in PowerShell, and using the Get-Date cmdlet. Here’s one of them.
Say you want to know what day of the week it will be some arbitrary number of days from now. It’s pretty easy.
PS> (Get-Date).AddDays(39).DayOfWeek
Friday
At the time I write this, it looks like in 39 days, it’ll be Friday.
Recommend
-
8
Home powershell Free Training (one week) on Sending Windows Notifications with PowerShell Free Training (one...
-
2
PowerShell + DevOps Global Summit 2021: Calling All Speakers! Hello PowerShell and Automation...
-
9
PSArm – PowerShell DSL For Azure Resource Manager – Introduction #PowerShell #AzureResourceManager Those who worked on Azure Resource Manager (ARM) templates understand that complexity of writing and making sure that the templ...
-
9
ConversationIf not De Vries, not Gio, then a Ferrari junior for sure. Schwartzman, Ilott.Would love to se...
-
6
GM tells some Bolt owners to park 50 feet away from other cars The new advice is likely to rankle owners who are already limiting their use of the Bolt to avoid overheating the bat...
-
2
Disable-PnpDevice -Confirm:$false" This disables all internet devices. Find which one is the pedals and filter for that"Don’t miss what’s happeningPeople on Twitter are the first to know.
-
2
[Last Week in .NET #88] – PowerShell Pariah Starting out this week a little differently, Sarah Dresner, @sarah_edo on twitter comments on the...
-
8
Get the "PowerShell Notes for Professionals" free eBook...
-
2
KQL Series – some DevOps things: Provisioning using Powershell If you have read any of my last few posts on provisioning Azure Data Explorer then you will probably be wondering….. Will he writ...
-
6
Why the Original Transformer Figure Is Wrong, and Some Other Interesting Historical Tidbits About LLMsA few months ago, I shared the article, Understanding Large Language Models: A Cross-Section of the Most Relevant Literat...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK