Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Is there a way in VB.Net to determine if the timezone the current system has daylight savings time in effect? Of course I can get the offset from GMT using the "z"/"zz" formatting option, but that doesn't tell me if DST is in effect for the current timezone or if the current timezone is in standard time...or if DST/Standard time aren't even an issue in the timezone for the system. Does that make sense?

like image 472
GregH Avatar asked Dec 09 '22 14:12

GregH


1 Answers

TimeZoneInfo.IsDaylightSavingTime Method

like image 183
Hari Pachuveetil Avatar answered May 24 '23 11:05

Hari Pachuveetil