Tidbits on managing Windows Administration using PowerShell.
Monday, February 5, 2018
Find the Day of the Year
The easiest way to use PowerShell to get the date is--surprise!--Get-Date:
Get-Date
But that output is not a string of text. It's an object, with properties that can be searched for, extracted, and manipulated. For example, how many days into the year are we on today's date?
No comments:
Post a Comment