Question

VIJAY361 on Fri, 03 Mar 2017 15:30:36


 where can I find datetime and  timezone  format for vb.net vs 2008

Vijay


Sponsored



Replies

VIJAY361 on Fri, 03 Mar 2017 15:47:14


I have find   something that make sence but I need  more to justify with daytimeand timezone in format 

at least I have found 

"System.TimeZone.CurrentTimeZone.StandardName" to get timezone 

what I am trying to do is to populate label with current or sysdate with timezone.


Vijay


Frank L. Smith on Fri, 03 Mar 2017 16:10:31


VIJAY,

Have a look at the TimeZoneInfo class:

https://msdn.microsoft.com/en-us/library/system.timezoneinfo(v=vs.110).aspx

Specifically useful, is the method to retrieve an instance based on the name:

Dim easternZone As TimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time")

More here:

https://msdn.microsoft.com/en-us/library/bb397765(v=vs.110).aspx