Earlier this week I was having some fun with @EnergizedTech on Twitter, playing around with dates in PowerShell. I’m not even sure where we started but the experience got me thinking and it’s Friday so let’s have some fun. While I can easily find out what the day of the year is for a given…
Tag: Get-Date
Friday Fun: Get-Anniversary
Recently I celebrated a wedding anniversary. Even though I didn’t forget I could have used a little help. So I figured since I’m in PowerShell all the time anyway, it could help. I built a little script to remind me of important dates. Let me walk you through the key steps. First, I’ll define a…
Get Total Number of Week Days
Recently I was asked about a way to calculate the number of week days between two dates. It is simple enough to get the total days by subtracting two dates and then using the resulting TimeSpan object. But what if you want to skip counting Saturday and Sunday? As far as I can tell there…
Is It Friday Yet?
Some days the week just seems to drag on and on and on….Like many of you, I can’t wait for the end of the work day on Friday afternoon. But how much longer is it until I can say, in a cliche ridden fashion, “TGIF!” Fortunately I have PowerShell to give me a pretty accurate…