Re: How to convert US date format to European date format ?

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: How to convert US date format to European date format ?
Дата
Msg-id 5167BEFA.9010101@hogranch.com
обсуждение исходный текст
Ответ на Re: How to convert US date format to European date format?  (Condor <condor@stz-bg.com>)
Ответы Re: How to convert US date format to European date format?
Список pgsql-general
On 4/12/2013 12:42 AM, Condor wrote:
> and ISO, DMY show me: 2012-10-15 11:00:49.397908 if I use Postgres,
> DMY show me
> Mon 15 Oct 11:00:49.397908 2012
>
> But I want to be formatted: 11:00:49 15-10-2012

use the date formatting functions, like...

     select to_char(yourfield, 'HH:MI:SS DD-MM-YYYY') ...

see http://www.postgresql.org/docs/current/static/functions-formatting.html




--
john r pierce                                      37N 122W
somewhere on the middle of the left coast



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

Предыдущее
От: Condor
Дата:
Сообщение: Re: How to convert US date format to European date format?
Следующее
От: Yang Zhang
Дата:
Сообщение: Why is PostgreSQL 9.1 not using index for simple equality select