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: timestamp and date format

Re: timestamp and date format

From: sybrandb <sybrandb_at_gmail.com>
Date: 8 Dec 2006 23:16:35 -0800
Message-ID: <1165648595.428770.141270@j72g2000cwa.googlegroups.com>

Bruintje Beer wrote:
> Hi,
>
> I am new to oracle. How can I change the timestamp and date format to
> dd-mm-yyyy hh:mm:ss for timestamp and dd-mm-yyyy for date.
>
> Thanks
>
> John

Dates are not stored as a string internally. You can change the display format though by using the to_char function. select to_char(sysdate, 'dd-mm-yyyyy') from dual;

Doc questions are best avoided here.
The SQL reference manual at http://tahiti.oracle.com is your friend.

-- 
Sybrand Bakker
Senior Oracle DBA
Received on Sat Dec 09 2006 - 01:16:35 CST

Original text of this message

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