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: Q: a date question ?

Re: Q: a date question ?

From: Scott Kronheim <skronheim_at_synertechsystems.com>
Date: Wed, 12 Jan 2000 12:34:10 -0500
Message-ID: <387CBB12.3B26585A@synertechsystems.com>


Oracle only uses the NLS_DATE_FORMAT when you don't give an explicit format mask. In this case, you specified "mmyy", so the NLS_DATE_FORMAT was ignored. Try using to_date('0199','mmrr') instead.

tedchyn_at_yahoo.com wrote:
>
> Sir: I have following date question:
>
> SQL> alter session set nls_date_format='dd-mon-rrrr';
>
> Session altered.
>
> SQL> insert into x_1 values(to_date('0199','mmyy'));
>
> 1 row created.
>
> SQL> select * from x_1;
>
> C1
> -----------
> 01-jan-2099
>
> Is there a way I am able to get 01-jan-1999 instead of 01-jan-2099 ?
> looks like rrrr did not work.
> thanks in advance
> ted chyn
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Wed Jan 12 2000 - 11:34:10 CST

Original text of this message

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