Here is how PowerShell can find out whether Daylight Savings Time is currently effective – a potentially needed detail when doing GMT calculations:

(Get-Date).IsDaylightSavingTime()

Twitter This Tip! ReTweet this Tip!

Anonymous