Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id EB34F9FB872 for ; Sun, 4 Mar 2007 14:53:23 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 17789-04 for ; Sun, 4 Mar 2007 14:53:13 -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 2F9CF9FB85A for ; Sun, 4 Mar 2007 14:53:21 -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 8FFD38BCD62; Sun, 4 Mar 2007 18:55:57 +0000 (GMT) From: Garry Saddington Organization: ScholarPack To: Martijn van Oosterhout Subject: Re: date format Date: Sun, 4 Mar 2007 18:56:20 +0000 User-Agent: KMail/1.9.5 Cc: pgsql-general@postgresql.org, rod@iol.ie References: <200703041247.05097.garry@schoolteachers.co.uk> <200703041705.44507.garry@schoolteachers.co.uk> <20070304170935.GC11685@svana.org> In-Reply-To: <20070304170935.GC11685@svana.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703041856.20139.garry@schoolteachers.co.uk> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.367 tagged_above=0 required=5 tests=AWL, BAYES_50, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200703/214 X-Sequence-Number: 110404 On Sunday 04 March 2007 17:09, Martijn van Oosterhout wrote: > On Sun, Mar 04, 2007 at 05:05:44PM +0000, Garry Saddington wrote: > > On Sunday 04 March 2007 16:16, Raymond O'Donnell wrote: > > > On 04/03/2007 16:16, Garry Saddington wrote: > > > > I tried pgAdmin3 on windows to run 'select now()' and it still does > > > > not return the correct datestyle. > > > > > > Probably a silly question, but did you remember to restart the server > > > after changing the datestyle setting? > > > > yes > > regards > > Can you show us your exact output so we don't have to guess? I get > this: > > # set datestyle=iso,dmy; > SET > # select now(); > now > ------------------------------- > 2007-03-04 18:07:54.626267+01 > (1 row) > > Which is precisely what I expect. Which is precisely what I get, but I want 04-03-2007. regards Garry