Re: help on to_date conversion please.... - Mailing list pgsql-admin

From Karel Zak
Subject Re: help on to_date conversion please....
Date
Msg-id 20020404103642.D20127@zf.jcu.cz
Whole thread Raw
In response to Re: help on to_date conversion please....  (Chris Pesko <cpesko@organic.com>)
List pgsql-admin
On Wed, Apr 03, 2002 at 04:02:11PM -0800, Chris Pesko wrote:
> Thanks.  That seems a better way to go.

 The PostgreSQL docs is your good friend :-)

> At 03:47 PM 4/3/02 -0800, Stephan Szabo wrote:
>
> >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)

 The extra space is very common for all to_...() outputs/inputs and is
 needful thing of this. Don't ask me why.. it's Oracle idea.

    Karel

--
 Karel Zak  <zakkr@zf.jcu.cz>
 http://home.zf.jcu.cz/~zakkr/

 C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

pgsql-admin by date:

Previous
From: "Marin Dimitrov"
Date:
Subject: Re: indexes separate from data
Next
From: Andre Schubert
Date:
Subject: Re: Log rotation