Click to See Complete Forum and Search --> : Converting between Time Zones


December 13th, 1999, 09:04 AM
Hi,

I have been trawling the help for some time now in an effort to find an answer to this problem with no success. Can anyone out there help me?

I have a Calendar object with a date time in it for a given timezone. This could be any timezone at all, even an unrecognised one (just a time offset from GMT). I need to convert the time to GMT so that I can then display it. How should I perform this conversion?

I would have thought that there would be a class for performing conversions such as this, to deal with daylight savings and the such. Is there? The only way I have thought of to do the conversion is to get the millisecond time and apply the offest to it, so creating the GMT time.

Any better ideas?

Thanks
Richard