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

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

From: Sybrand Bakker <sybrandb_at_hccnet.nl>
Date: Thu, 25 Mar 2004 00:04:43 +0100
Message-ID: <ks446052j4gh68u3na9tev5r6v1klnsg5r@4ax.com>


On Wed, 24 Mar 2004 13:40:10 -0500, "Jarson" <jarsonk_at_nospam.com> wrote:

>You shouldn't have to

ignorance is bliss. Any element you don't specify in to_char defaults to the sysdate, as documented.
You should have TRUNCed the date to YYYY

--
Sybrand Bakker, Senior Oracle DBA
Received on Wed Mar 24 2004 - 17:04:43 CST

Original text of this message

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