GMT TO LMT Conversion function

You could use timespan to find the difference between local time and UTC and then use timespan to convert any time to UTC/GMT.

VB.NET:
        Dim dt As DateTime
        Dim dtUtc As DateTime
        dt = DateTime.Now
        dtUtc = DateTime.UtcNow
        Dim ts As TimeSpan = dtUtc.Subtract(dt)

        GMTDate = Anydate.Add(ts)
Something like that?
 
Back
Top