Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 168B79FB58C for ; Sun, 4 Mar 2007 11:28:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 80985-02 for ; Sun, 4 Mar 2007 11:28:37 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail02.svc.cra.dublin.eircom.net (mail02.svc.cra.dublin.eircom.net [159.134.118.18]) by postgresql.org (Postfix) with SMTP id 31D639FB4C8 for ; Sun, 4 Mar 2007 11:28:37 -0400 (AST) Received: (qmail 40945 messnum 5256088 invoked from network[83.71.89.140/83-71-89-140.b-ras1.mvw.galway.eircom.net]); 4 Mar 2007 15:28:35 -0000 Received: from 83-71-89-140.b-ras1.mvw.galway.eircom.net (HELO ?127.0.0.1?) (83.71.89.140) by mail02.svc.cra.dublin.eircom.net (qp 40945) with SMTP; 4 Mar 2007 15:28:35 -0000 Message-ID: <45EAE5A1.4080903@iol.ie> Date: Sun, 04 Mar 2007 15:28:33 +0000 From: Raymond O'Donnell Reply-To: rod@iol.ie User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Re: date format References: <200703041247.05097.garry@schoolteachers.co.uk> <87hct1412x.fsf@gmail.com> In-Reply-To: <87hct1412x.fsf@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 000721-1, 03/03/2007), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.176 tagged_above=0 required=5 tests=AWL, BAYES_50 X-Spam-Level: X-Archive-Number: 200703/199 X-Sequence-Number: 110389 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. Ray. --------------------------------------------------------------- Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland rod@iol.ie ---------------------------------------------------------------