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 -> Re: to_date - "formated code appear twice" error

Re: to_date - "formated code appear twice" error

From: Jim Kennedy <kennedy-family_at_attbi.com>
Date: Fri, 05 Apr 2002 06:19:24 GMT
Message-ID: <Llbr8.217042$702.34914@sccrnsc02>


Also you should specify 4 digits for the year, much safer. Jim
"ZV" <valliz_at_consultant.com> wrote in message news:3CACB361.30A79C2E_at_consultant.com...
> I think it is your "mm" (check where the "*" appears in the error
> message).
>
> It is "mm" for the month, but "mi" for the minutes...
>
> ZV
>
> Zhiliang Hu wrote:
> >
> > I got a weired problem:
> >
> > ____________________________________________________
> > SQL> update namelist set timearri=to_date('02-27-02 08:15:00', 'mm-dd-yy
> > hh:mm:ss am') where nameid='4841';
> >
> > update namelist set timearri=to_date('02-27-02 08:15:00', 'mm-dd-yy
> > hh:mm:ss am') where nameid='4841'
> > *
> > ERROR at line 1:
> > ORA-01810: format code appears twice
> > -------------------------------------------------------------------
> >
> > Any hint? (where is "appears twice"? ;-)
> >
> > Thanks!
> > Zhiliang
Received on Fri Apr 05 2002 - 00:19:24 CST

Original text of this message

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