Converting GMT dates
I have a DB2 database giving me a date in GMT format and I need to convert it to my local timezone. The .NET TimeZone class makes this sooooo easy:
Dim gmtDate As DateTime = DateTime.Parse(...) Dim localTime As DateTime = TimeZone.CurrentTimeZone.ToLocalTime(gmtDate)