How to check if the date is adjusted by Daylight saving time using PowerShell?



To check if the date is adjusted by the daylight savings you need to use the function IsDayLightSavingTime() of the Get-Date cmdlet.

PS C:\WINDOWS\system32> (Get-Date).IsDaylightSavingTime()
False

To know more about DST, check the link below.

http://www.webexhibits.org/daylightsaving/b.html


Advertisements