Converting from one timezone to another

Joined
Apr 20, 2009
Messages
2
Reaction score
0
HI All,

Version: Java 1.5
Database: Oracle 10g

I have a date column in a table. Using the JDBC call I retrieve the date using:

Timestamp datetime = ResultSet.getTimestamp();

Now I want to convert this into a different time zone. For Example, if the database has "10-APR-2009 22:00:00" and if the JVM's timezone is America/Los_Angeles, it will be read as "10-APR-2009 22:00:00 PST". Now I want to convert this into IST time and date. So, it should be converted "11-APR-2009 10:30:00 IST".

Please let me know how to do this.

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top