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: VBQ (very basic question) date

Re: VBQ (very basic question) date

From: Kenny Gump <kgump_at_mylanlabs.com.nospam>
Date: Thu, 24 Jun 1999 16:00:31 -0400
Message-ID: <37728e7f.0@news.mountain.net>


In Oracle you cannot specify the format in which a date is stored. Oracle always uses 7 bytes:
Century, Year, Month, Day, Hour, Minute and Second.

The date format is only used for input and display. If you want to change the way you use a date for the database then set NLS_DATE_FORMAT in the init.ora file. If you only want to use it for that particular table then you will have to control it programmatically.

Kenny Gump

bernd1615_at_my-deja.com wrote in message <7ktgj1$7qv$1_at_nnrp1.deja.com>...
>Dear Participants ,
>
>I have some trouble setting the date format:
>
>create table some_table
>( ...
> dat date,
> ... )
>
>I don`t want to take the default date format but something like :
>
> ...
> dat date (DD MON YYYY HH24 MI SS) ,
> ...
>Does someone of you know the correct syntax for that ?
>
>Your insight knowledge will be greatly appreciated !
>
>Markus Banach
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.
Received on Thu Jun 24 1999 - 15:00:31 CDT

Original text of this message

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