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 -> select to_date('2004','YYYY') NOT Jan 1 2004

select to_date('2004','YYYY') NOT Jan 1 2004

From: Jarson <jarsonk_at_nospam.com>
Date: Wed, 24 Mar 2004 10:56:06 -0500
Message-ID: <pdi8c.18858$A_2.978850@news20.bellglobal.com>


When I run the following SQL

SQL> select to_date('2004','YYYY') from dual ;

The result is 01-Mar-04. I was expecting 01-Jan-04. Is it returning March because that is the current month, or does it always return March? Does anyone else get this (I'm on Oracle 8.1.6)?

Jarson Received on Wed Mar 24 2004 - 09:56:06 CST

Original text of this message

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