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

Updated on: 20-Mar-2020

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements