Re: How to convert postgres timestamp to date: yyyy-mm-dd

Поиск
Список
Период
Сортировка
От Adam Rich
Тема Re: How to convert postgres timestamp to date: yyyy-mm-dd
Дата
Msg-id 018b01c883a4$ce984520$6bc8cf60$@r@sbcglobal.net
обсуждение исходный текст
Ответ на How to convert postgres timestamp to date: yyyy-mm-dd  (CaseT <ctorres@quantumcomposers.com>)
Список pgsql-general
> I need to convert postgres timestamp to date format yyyy-mm-dd in a
> sql statement.
> pt.created_date below is timestamp format
>
> i.e ... WHERE pt.created_date >=  '2008-01-21'
>
> Any help would be greatly appreciated.

Try this:

WHERE pt.created_date >= '2008-01-21'::date






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

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: basic plpgsql / sql funtion question
Следующее
От: Tim Child
Дата:
Сообщение: ERROR: text search configuration "pg_catalog.english" does not exist