Oh how do I love PowerShell
Man I love PowerShell! Not only does it help me managing the systems at work, it comes in handy at home too!
While doing my taxes for the State of Michigan, I needed to find out how many days I lived in my new house. I was thinking that it would suck to try to calculate that accurately. Then I got to thinking, I can do that in PowerShell! Is there anything that PowerShell can't do?
I fired up PowerShell and typed the following at the command line.
PS C:\> $house = [System.DateTime] "6/17/2007" - [System.DateTime] "12/31/2007"
PS C:\> $house.TotalDays
-197
Hmmm. I lived in my house for 197 days. It doesn't seem that long. However, my house isn't as nice as Joe's house!