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: Urgent!! Date format change

Re: Urgent!! Date format change

From: <mike_donnelly_at_my-deja.com>
Date: 2000/04/07
Message-ID: <8cl17r$te7$1@nnrp1.deja.com>#1/1

In article <38ed9ced_2_at_news1.prserv.net>,   "Mike Ng" <mike_at_email.tech-trans.com> wrote:
> Hi all,
>
> I want to use the date format like this "DD-MM-YYYY HH24:MI:SS" but I
 need
> use the sql
> "alter session set nls_date_format='DD-MM-YYYY HH24:MI:SS" to setup
 the
> environment every time I login.
>

I amy be missing the point here BUT why can't you just do a select with a TO_CHAR? e.g.

SELECT TO_CHAR(sysdate, 'DD-MON-YYYY HH24:MI:SS) FROM DUAL Sent via Deja.com http://www.deja.com/
Before you buy. Received on Fri Apr 07 2000 - 00:00:00 CDT

Original text of this message

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