Re: outputting dates - Mailing list pgsql-sql

From Christoph Haller
Subject Re: outputting dates
Date
Msg-id 4236EBDA.5012F012@rodos.fzk.de
Whole thread Raw
In response to outputting dates  (Kenneth Gonsalves <lawgon@thenilgiris.com>)
List 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 by date:

Previous
From: Christoph Haller
Date:
Subject: Re: How to force subquery scan?
Next
From: PFC
Date:
Subject: Re: select multiple immediate values, but in multiple rows