Re: outputting dates

Поиск
Список
Период
Сортировка
От Christoph Haller
Тема Re: outputting dates
Дата
Msg-id 4236EBDA.5012F012@rodos.fzk.de
обсуждение исходный текст
Ответ на outputting dates  (Kenneth Gonsalves <lawgon@thenilgiris.com>)
Список pgsql-sql
Kenneth Gonsalves wrote:
> 
> hi,
> i have set my datetype to 'European, SQL'. This correctly accepts
> dates of the form dd/mm/yyyy. However, the output is still in the
> 'yyyy-mm-dd' format. How do i get the default output as dd/mm/yyyy?
> --
> regards
> kg
> 

I have 
select version();                                     
version                                       
-------------------------------------------------------------------------------------PostgreSQL 7.4.5 on
i686-pc-linux-gnu,compiled by GCC gcc (GCC) 3.3.1
 
(SuSE Linux)

I did
set datestyle to 'European, SQL';
SET
select date_trunc( 'day' , now() );      date_trunc        
-------------------------15/03/2005 00:00:00 CET

How did you set your datetype? 

Regards, Christoph


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

Предыдущее
От: Christoph Haller
Дата:
Сообщение: Re: How to force subquery scan?
Следующее
От: PFC
Дата:
Сообщение: Re: select multiple immediate values, but in multiple rows