Re: help on to_date conversion please....

From: Chris Pesko <cpesko(at)organic(dot)com>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: help on to_date conversion please....
Date: 2002-04-04 00:02:11
Message-ID: 4.3.2.7.2.20020403160156.046526a0@mailhost.organic.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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)

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Marin Dimitrov 2002-04-04 07:25:48 Re: indexes separate from data
Previous Message Stephan Szabo 2002-04-03 23:47:48 Re: help on to_date conversion please....