Check Date Adjustment for Daylight Saving Time in 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: 2020-03-20T06:57:02+05:30

3K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements