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: strange date insertion

Re: strange date insertion

From: Jim Kennedy <kennedy-downwithspammersfamily_at_attbi.net>
Date: Mon, 29 Mar 2004 13:25:20 GMT
Message-ID: <4tV9c.30430$JO3.28991@attbi_s04>

"Andre" <avanrossem_at_hotmail.com> wrote in message news:4d32d1be.0403290414.1f94c80a_at_posting.google.com...
> Hello all,
>
> I have a problem:
>
> If i put in the following value in an oracle date-field:
> 01-01-29 then oracle converts it to 01-01-2029
>
> But If i insert 01-01-30 then oracle converts it to 01-01-1930
>
> Is this normal? Where can I change it?
>
> regards,
> Anneke

use the to_date function to make sure you translate strings to dates correctly. eg to_date('01-01-20029','mm-dd-yyyy') Jim Received on Mon Mar 29 2004 - 07:25:20 CST

Original text of this message

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