Re: help on to_date conversion please....

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: help on to_date conversion please....
Дата
Msg-id 20020403154655.Y98769-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: help on to_date conversion please....  (Chris Pesko <cpesko@organic.com>)
Ответы Re: help on to_date conversion please....  (Chris Pesko <cpesko@organic.com>)
Список pgsql-admin
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)


В списке pgsql-admin по дате отправления:

Предыдущее
От: Chris Pesko
Дата:
Сообщение: Re: help on to_date conversion please....
Следующее
От: Chris Pesko
Дата:
Сообщение: Re: help on to_date conversion please....