Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: simple question about default date mask?
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 CorporationReceived on Fri Jan 07 2000 - 00:00:00 CST