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

Home -> Community -> Usenet -> c.d.o.server -> Re: Comparing dates

Re: Comparing dates

From: Sam Jordan <sjo_at_spin.ch>
Date: Mon, 03 May 1999 10:41:07 +0000
Message-ID: <372D7D43.2DDBF64E@spin.ch>


Glenn Baron wrote:
>
> My guess would be that EVENTDATE is actually 01-MAY-0099 ...
> try :
>
> select to_char(eventdate,'dd-mon-yyyy') from history ;
>
> to expand it including century.
> You might have some Y2K bugs to fix ...

Thanks a lot, you gave me the right hint to find the problem. The date was stored as 01-may-3899 :)

Well, I felt into an ugly trap: the date was generated in Java and stored through JDBC. The constructor for java.sql.Date expects the expression year-1900 as input...

bye
--
Sam Jordan Received on Mon May 03 1999 - 05:41:07 CDT

Original text of this message

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