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: how to change date format to include time?

Re: how to change date format to include time?

From: Tomm Carr <tommcatt_at_geocities.com>
Date: 1997/07/29
Message-ID: <33DE3803.5E97@geocities.com>#1/1

Annabel Fang Liu wrote:
>
> I am trying to change the date format in oracle 7.3.2 to include
> hour and minute. I would like to change the date format to be
> something like '199901012259'. Can anyone help me?

It looks like you want 'yyyymmddhh24mi'

alter session set nls_date_format = 'yyyymmddhh24mi'; or
dbms_session.set_nls( 'nls_date_format', '''yyyymmddhh24mi''' );

-- 
Tomm Carr
--
"Can you describe your assailant?"
"No problem, Officer.  That's exactly what I was doing when he hit me!"
Received on Tue Jul 29 1997 - 00:00:00 CDT

Original text of this message

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