Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: simple question about default date mask?

Re: simple question about default date mask?

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: 2000/01/07
Message-ID: <34kc7s8tc0n1hkp2fm5asc4r8llildbam3@4ax.com>#1/1

A copy of this was sent to <yliu_at_creighton.edu> (if that email address didn't require changing) On Fri, 7 Jan 2000 14:16:20 -0600, you wrote:

>Hi All,
>
>Could somebody please tell me how to set the default mask of a session to
>include the four digit year? Currently, my sql*plus date mask is
>'dd-Mon-yy', and I wanted it to be 'dd-Mon-yyyy' just for my current
>session.
>
>Thank you very much for your time.
>
>Yongge
>

SQL> alter session set nls_date_format='dd-mon-yyyy';

-- 
See http://osi.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'...
Current article is "Part I of V, Autonomous Transactions" updated June 21'st
 
Thomas Kyte                   tkyte_at_us.oracle.com
Oracle Service Industries     Reston, VA   USA

Opinions are mine and do not necessarily reflect those of Oracle Corporation
Received on Fri Jan 07 2000 - 00:00:00 CST

Original text of this message

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