PowerTip: Get Time Difference between Dates with PowerShell
Summary: Use New-TimeSpan to produce the time difference between two dates.
I know I can subtract dates, but is there a Windows PoweShell cmdlet to show me the time difference between dates?
Use New-TimeSpan and supply the information!
For example, to show the difference between today and the upcoming New Year:
NEW-TIMESPAN –Start $StartDate –End $EndDate