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

PowerShellMicrosoft TechnologiesSoftware & Coding

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

raja
Published on 20-Mar-2020 06:56:14
Advertisements