Converting from one timezone to another

Discussion in 'Java' started by kramesh, Apr 20, 2009.

  1. kramesh

    kramesh

    Joined:
    Apr 20, 2009
    Messages:
    2
    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
    kramesh, Apr 20, 2009
    #1
    1. Advertising

  2. kramesh

    kramesh

    Joined:
    Apr 20, 2009
    Messages:
    2
    Please help.
    kramesh, Apr 21, 2009
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nathan Sokalski

    Converting the time from one timezone to another

    Nathan Sokalski, Feb 18, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    6,454
    clintonG
    Mar 2, 2006
  2. asaf
    Replies:
    3
    Views:
    6,136
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=
    Sep 11, 2006
  3. axrock
    Replies:
    8
    Views:
    938
    Roedy Green
    Mar 25, 2009
  4. Nathan Sokalski

    Converting the time from one timezone to another

    Nathan Sokalski, Feb 18, 2006, in forum: ASP .Net Building Controls
    Replies:
    6
    Views:
    174
    clintonG
    Mar 2, 2006
  5. Ami
    Replies:
    5
    Views:
    265
Loading...

Share This Page