Saturday, 31 August 2013

How to convert date for the first timezone to the second?

How to convert date for the first timezone to the second?

There is the following info:
date ("2013-08-30 07:05:25")
timezone ("Europe/Moscow")
My app gets this info from some server, and I need to convert this
date/time to current user's timezone. I know that I should use DateFormat
and TimeZone APIs, but I don't understand how. Please, give me a piece of
advice or some code. Thanks.

No comments:

Post a Comment