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: year 2000 - Maybe a stupid question

Re: year 2000 - Maybe a stupid question

From: Rolf Hauck <Rolf.Hauck_at_datenrevision.de>
Date: Wed, 22 Jul 1998 07:29:36 +0200
Message-ID: <35B578C0.75D3EF31@datenrevision.de>


Hi,
the magic word you need is NLS_DATE_FORMAT. If you set this to the format you prefer (try 'dd.mm.yyyy hh24:mi:ss'), you don't need those ugly to_date/to_char functions.
You can set NLS_DATE_FORMAT in your Windows Registry for client access, and even in your init.ora. For sqlplus on unix try creating a file login.sql in your home-dir, containing "Alter Session set NLS_DATE_FORMAT...". Rolf

Birgit Merschmann wrote:
>
> Hi,
> ...
> I can't insert a date with 4 characters; for example:
> 01.01. 2000.
Received on Wed Jul 22 1998 - 00:29:36 CDT

Original text of this message

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