From: Raymond O'Donnell <rod@iol.ie>
To: pgsql-general@postgresql.org
Subject: Re: date format
Date: Sun, 04 Mar 2007 15:28:33 +0000
Message-ID: <45EAE5A1.4080903@iol.ie> (raw)
In-Reply-To: <87hct1412x.fsf@gmail.com>
References: <200703041247.05097.garry@schoolteachers.co.uk>
<87hct1412x.fsf@gmail.com>
On 04/03/2007 12:58, Jorge Godoy wrote:
> Garry Saddington <garry@schoolteachers.co.uk> writes:
>
>> I have 'datestyle ISO,DMY' set in postgresql.conf but the date output is still
>> rendered in the format (y,m,d) . How can I change this behaviour?
>
> ISO means y-m-d...
The default postgresql.conf that is installed has
datestyle = iso,mdy
though commented out - on a new installation I uncomment this line as a
matter of course and change it to "iso,dmy" and it works fine.
Are you sure that PostgreSQL is presenting the dates in the wrong
format? Could there be another layer that's swapping the month and year
around? - try SELECTing some date values from psql and see what you get.
Ray.
---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
---------------------------------------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: rod@iol.ie
Subject: Re: date format
In-Reply-To: <45EAE5A1.4080903@iol.ie>
References: <200703041247.05097.garry@schoolteachers.co.uk> <87hct1412x.fsf@gmail.com> <45EAE5A1.4080903@iol.ie>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox