Re: convert from an integer to a date

Поиск
Список
Период
Сортировка
От Frank Bax
Тема Re: convert from an integer to a date
Дата
Msg-id 5.1.1.6.0.20030217164006.03b8dec0@pop6.sympatico.ca
обсуждение исходный текст
Ответ на convert from an integer to a date  (STashlitsky@JEFCO.com)
Список pgsql-sql
At 04:33 PM 2/14/03, STashlitsky@JEFCO.com wrote:
>When I run select to_date('20030212','YYYYMMDD') the output is 2/12/03
>if I run select to_date( to_char(20030212,99999999),'YYYYMMDD'); the 
>output is 6/23/05
>
>How can I convert from integer into date format correctly?


Same as the first one, except leave out the quotes.        select to_date(20030212,'YYYYMMDD');



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

Предыдущее
От: Tomasz Myrta
Дата:
Сообщение: Re:
Следующее
От: "Yudie"
Дата:
Сообщение: Re: Format Function