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: oracle date format model

Re: oracle date format model

From: IANAL_VISTA <IANAL_Vista_at_hotmail.com>
Date: Sat, 01 Jan 2005 00:08:33 GMT
Message-ID: <Xns95D0A435E221BSunnySD@68.6.19.6>


<tncc> wrote in news:41d5dc67_3_at_rain.i-cable.com:

> There is such a statement made by the oracle9i documentation (under
> Format model of SQL Reference):
> ***quote:***
> Oracle returns and error if an alphanumeric character is found in the
> date string where punctuation character is found in the format string.
> For example:
>
> TO_CHAR(TO_DATE('0297', 'MM/YY'), 'MM/YY')
>
> returns an error.
> *********
> However, I tried:
>
> select TO_CHAR(TO_DATE('0297', 'MM/YY'), 'MM/YY') from dual
>
> and there is no error returned. Instead the date is displayed
> properly (feb, 1997).
>
> What is meant by the above statement?
>
>
>

How in the world do you get "feb, 1997" returned by a mask of 'MM/YY'?

I suspect your actual mask was 'mon, YYYY' Received on Fri Dec 31 2004 - 18:08:33 CST

Original text of this message

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