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: Changing default Date format in Oracle 6

Re: Changing default Date format in Oracle 6

From: Tim Witort <trwAT_at_ATmedicalert.DOTorg>
Date: 1997/07/29
Message-ID: <33DE77CA.2750@ATmedicalert.DOTorg>#1/1

Albert W. Dorrington wrote:
>
> Hi All,
>
> I have an Oracle6 database (V6.0.33.1.4) and have not been
> able to find the answer to this question inthe documentation.
> Is there a method for changing the default date presented
> by the database when selecting from a date field?
> Currently the system returns dates in the format of: 22-JUL-97
> I would like to change the default format to be: 22-JUL-1997
>
> Yes, I know I can use the formatting routines for this, but I would
> like the DEFAULT format to change.

Sorry, v6 and v7 return the date in DD-MON-YY format. You can fake the change with views which do a to_char, but then the retrieved value will be char, not date. I know of no way to change the way a date is presented by default.

Received on Tue Jul 29 1997 - 00:00:00 CDT

Original text of this message

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