Re: Default date format
Date: Wed, 30 Jun 1993 13:10:07 GMT
Message-ID: <ALAW.93Jun30051007_at_ap221sun.oracle.com>
p0070621_at_oxford-brookes.ac.uk (Tommy Wareing) writes:
> Does anyone know of a wya to change the default date format
> from DD-MON-YY? All the applications we're now writing have
> to cope with possible dates after the year 1999, and so our
> code has TO_CHAR(date, 'DD-MON-YYYY') or TO_DATE(char, 'DD-MON-YYYY')
> littered through it?
> Why don't oracle have a system-wide date format, eg. in the
> config.ora file, so each database instance can use it's own
> date representation?
Yes, we do. Under Oracle7, you can specify the default date format in the init.ora file. The parameter is NLS_DATE_FORMAT. You can also override the format in a particular session by the command ALTER SESSION. Refer to your Database Adminstrator's Guide for more details.
--
Alvin W. Law .............................................. Oracle Corporation
Senior Software Engineer ...................... 300 Oracle Parkway, Box 659306
Manufacturing Applications .......................... Redwood Shores, CA 94065
Email: alaw_at_oracle.com ........... Voice: 1.415.506.3390 . Fax: 1.415.506.7299
"Geez, it's an UNIX system."
- Alexis Murphy, from Jurassic Park
Received on Wed Jun 30 1993 - 15:10:07 CEST
