Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> to_date in oracle 9i with time zone

to_date in oracle 9i with time zone

From: harris <harris_m_at_yahoo.com>
Date: 6 Jun 2003 13:34:44 -0700
Message-ID: <af968c64.0306061234.5cd0b2a1@posting.google.com>


I am using Oracle 9i. Oracle documentation says 9i supports "time zone" information. I am getting date/time information from a text file, which I want to insert into database table.

The date and time information includes time zone information which needs to be stored into database time.

I tried this -

SQL>select to_date('26-OCT-2003 01:00:00 PST', 'DD-MON-YYYY HH24:MI:SS TZD') from dual;

It shows me error -

ORA-01821: date format not recognized

SQL>select to_date('26-OCT-2003 01:00:00 -07:00', 'DD-MON-YYYY HH24:MI:SS TZH:TZM') from dual;

shows same-
-01821: date format not recognized

Question-

Anyone knows how to save "time zone" information into the "date" type column?

Thank you in advance.

Harris M. Received on Fri Jun 06 2003 - 15:34:44 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US