Received: from mx1.organic.com (mx1.organic.com [207.76.139.5]) by postgresql.org (Postfix) with ESMTP id 1E799475AD7 for ; Wed, 3 Apr 2002 18:58:13 -0500 (EST) Received: from vw-sf.organic.com (vw-sf.organic.com [207.76.139.10]) by mx1.organic.com (8.9.3+Sun/8.9.3) with SMTP id PAA26665 for ; Wed, 3 Apr 2002 15:58:00 -0800 (PST) Received: FROM fwd1-sf.organic.com BY vw-sf.organic.com ; Wed Apr 03 15:58:16 2002 -0800 Received: from goldengate.organic.com (goldengate.organic.com [192.168.5.47]) by fwd1-sf.organic.com (8.9.3+Sun/8.9.3) with ESMTP id QAA05265; Wed, 3 Apr 2002 16:00:59 -0800 (PST) Received: from cpesko-del-sfo.organic.com (h28.n23.organic.com [192.168.23.28]) by goldengate.organic.com (8.9.3+Sun/8.9.3) with ESMTP id PAA25922; Wed, 3 Apr 2002 15:58:35 -0800 (PST) Message-Id: <4.3.2.7.2.20020403160156.046526a0@mailhost.organic.com> X-Sender: cpesko@mailhost.organic.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Wed, 03 Apr 2002 16:02:11 -0800 To: Stephan Szabo From: Chris Pesko Subject: Re: help on to_date conversion please.... Cc: In-Reply-To: <20020403154655.Y98769-100000@megazone23.bigpanda.com> References: <4.3.2.7.2.20020403153945.00bb2030@mailhost.organic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200204/46 X-Sequence-Number: 3935 Thanks. That seems a better way to go. At 03:47 PM 4/3/02 -0800, Stephan Szabo wrote: >On Wed, 3 Apr 2002, Chris Pesko wrote: > > > Never mind. Just figured it out. Need to grab the substring from 2 for 8 > > from the to_char result because it holds character number 1 reserv ed for + > > or - signs. + is default or white space. I think that is the reason. Any > > other input????? > >You might want to try the FM format on the to_char string... >sszabo=# select to_date(to_char(20020101, 'FM99999999'),'yyyymmdd'); > to_date >------------ > 2002-01-01 >(1 row)