Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 4BE199FB2B4 for ; Sun, 4 Mar 2007 12:13:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 76589-05 for ; Sun, 4 Mar 2007 12:13:09 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from smtp2.freeola.net (smtp2.freeola.net [81.31.99.7]) by postgresql.org (Postfix) with ESMTP id B04369FB2A7 for ; Sun, 4 Mar 2007 12:13:09 -0400 (AST) Received: from scholarpackdesktop.scholarpack.org (84-45-131-100.no-dns-yet.enta.net [84.45.131.100]) by smtp2.freeola.net (Postfix) with ESMTP id 72B548BCDAA; Sun, 4 Mar 2007 16:15:46 +0000 (GMT) From: Garry Saddington Organization: ScholarPack To: pgsql-general@postgresql.org, rod@iol.ie Subject: Re: date format Date: Sun, 4 Mar 2007 16:16:08 +0000 User-Agent: KMail/1.9.5 References: <200703041247.05097.garry@schoolteachers.co.uk> <87hct1412x.fsf@gmail.com> <45EAE5A1.4080903@iol.ie> In-Reply-To: <45EAE5A1.4080903@iol.ie> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703041616.08699.garry@schoolteachers.co.uk> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.186 tagged_above=0 required=5 tests=AWL, BAYES_50, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200703/200 X-Sequence-Number: 110390 On Sunday 04 March 2007 15:28, Raymond O'Donnell wrote: > On 04/03/2007 12:58, Jorge Godoy wrote: > > Garry Saddington 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