Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How to convert a date in one timezone to another timezone

Hi Everyone,
I'm a beginner in Java.
I want to convert a date in one timezone to another timezone.
I have a date string in some timezone and I want to convert this date to another timezone (I have timezone ID for this.)

e.g. A date is in timezone "America/New_York" and I want to convert the same date to "Africa/Algiers" timezone.

Can anyone please show me the code to get this... :(
[423 byte] By [padmakarnb] at [2007-11-11 10:01:48]
# 1 Re: How to convert a date in one timezone to another timezone
Look at the Date and the Calendar classes in the API
nspils at 2007-11-11 22:32:05 >