Is there a call in vb.net that I can make to determine daylight saving time?

Is there a way in VB.Net to determine if the current time zone has daylight saving time? Of course, I can get the offset from GMT using the format option "z" / "zz", but this does not tell me if the DST is valid for the current time zone or if the current time zone is at standard time ... or if the time is DST / standard time is not even a problem in the time zone for the system. It makes sense?

+3
source share
4 answers

You can use for date:

DateTimeInstance.IsDaylightSavingTime()
+3
source

Now.IsDaylightSavingTime. .

.

+3

I am sure that the answers provided will work ... I just could not figure out how to make them work. For me there is no IsDaylightSavingTime method. I ended up using:

   TimeZoneInfo.Local.DaylightName
0
source

Source: https://habr.com/ru/post/1763007/


All Articles