Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: dd/mm/yy - fixed default?
If you want the script to still only use 2 digit year (This is a bad idea)
then in the init.ora file change the NLS_DATE_FORMAT='DD-MON-RR'
the RR will set 00 - 49 as 2000 not 1900. Your best bet is still to change the
format
to 'DD-MON-YYYY', or something along those lines.
Marc G. Parkinson
james wigley wrote:
> Is it inevitable that and SQL scripts which queries a date field in an
> Oracle database will return with the format dd/mm/yy, unless the to_char(,)
> function is used - or is there a global default or setting that will prevent
> me from having to update a load of old scripts?
Received on Thu Dec 16 1999 - 19:34:06 CST
![]() |
![]() |