Java code to conevrt 1 timezone to another
Posted on 2006-04-20
can someone post any java code/help to converting one timezone to another.
I want to develop a small utility where user can select timezone and time (hour:minut:ss:AM) and then when he submits the page, timestamp should be converted to US EST and saved in database. Later on when same info is retrieved (from database in EST) should be dispalyed in USER'S DEFAULT TIME ZONE (PC'S SET TIMEZONE) on fronend.
Also want to know if "TimeZone.getDefault()" is the correct way to know the user's default timezone.
Need to include the daylight saving time also.
any help will be greatly appreciated.