From: Garry Saddington <garry@schoolteachers.co.uk>
To: pgsql-general@postgresql.org
To: rod@iol.ie
Subject: Re: date format
Date: Sun, 4 Mar 2007 16:16:08 +0000
Message-ID: <200703041616.08699.garry@schoolteachers.co.uk> (raw)
In-Reply-To: <45EAE5A1.4080903@iol.ie>
References: <200703041247.05097.garry@schoolteachers.co.uk>
<87hct1412x.fsf@gmail.com>
<45EAE5A1.4080903@iol.ie>
On Sunday 04 March 2007 15:28, Raymond O'Donnell wrote:
> 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.
>
I tried pgAdmin3 on windows to run 'select now()' and it still does not
return the correct datestyle.
Regards
Garry
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: garry@schoolteachers.co.uk, rod@iol.ie
Subject: Re: date format
In-Reply-To: <200703041616.08699.garry@schoolteachers.co.uk>
References: <200703041247.05097.garry@schoolteachers.co.uk> <87hct1412x.fsf@gmail.com> <45EAE5A1.4080903@iol.ie> <200703041616.08699.garry@schoolteachers.co.uk>
* 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