Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Urgent Query
deepagulati_at_rediffmail.com wrote:
> Hi,
> This query
> select to_date(CURRENT_DATE,'dd/mm/yyyy hh:mi:ss AM') from dual;
>
> returnig the result as 31/07/0006 while the current year is 2006 ???
>
> plz help
Oracle version would help tremendously. And, gee whiz, this works on 10.2.0.2:
SQL> alter session set nls_date_format = 'DD/MM/RRRR HH:MI:SS AM';
Session altered.
SQL> select to_date(CURRENT_DATE,'dd/mm/rrrr hh:mi:ss AM') from dual;
TO_DATE(CURRENT_DATE,'
SQL> I agree with Sybrand; if this is TRULY urgent contact Oracle support.
David Fitzjarrell Received on Mon Jul 31 2006 - 08:39:05 CDT