pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Pesko <cpesko@organic.com>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: help on to_date conversion please....
Date: Wed, 03 Apr 2002 16:02:11 -0800
Message-ID: <4.3.2.7.2.20020403160156.046526a0@mailhost.organic.com> (raw)
In-Reply-To: <20020403154655.Y98769-100000@megazone23.bigpanda.com>
References: <4.3.2.7.2.20020403153945.00bb2030@mailhost.organic.com>

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)





view thread (5+ messages)  latest in thread

Message-ID: <4.3.2.7.2.20020403160156.046526a0@mailhost.organic.com>
Permalink:  ../4.3.2.7.2.20020403160156.046526a0@mailhost.organic.com/
Also on:    postgresql.org/message-id/4.3.2.7.2.20020403160156.046526a0@mailhost.organic.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: cpesko@organic.com, sszabo@megazone23.bigpanda.com
  Subject: Re: help on to_date conversion please....
  In-Reply-To: <4.3.2.7.2.20020403160156.046526a0@mailhost.organic.com>
  References: <4.3.2.7.2.20020403153945.00bb2030@mailhost.organic.com> <4.3.2.7.2.20020403160156.046526a0@mailhost.organic.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox