java.util.TimeZone

Hi. My requirement is to convert a time from a source TImeZone to destination TimeZoneHow can i achive this?Thanks
[142 byte] By [Gokulananda] at [2007-11-26 20:52:37]
# 1
Something like:Get an instance of Calendar for the source TImeZoneConstruct a SimpleDateFormat with the required pattern and LocaleSet the destination TImeZone of the SimpleDateFormatFormat the Calendar instance with the SimpleDateFormat
YoGeea at 2007-7-10 2:18:12 > top of Java-index,Java Essentials,Java Programming...
# 2
Have a look at the forum post - http://forum.java.sun.com/thread.jspa?threadID=706300&tstart=90 . It might help to solve your problem.Also there is a good example at this site - http://www.exampledepot.com/egs/java.util/GetTimeOtherZone2.htmlHope this helps.
eck07a at 2007-7-10 2:18:12 > top of Java-index,Java Essentials,Java Programming...
# 3
Thanks both of youworks fine.
Gokulananda at 2007-7-10 2:18:12 > top of Java-index,Java Essentials,Java Programming...