X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 0920F9DC818 for ; Fri, 10 Feb 2006 12:59:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19366-06 for ; Fri, 10 Feb 2006 12:59:49 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id BB57C9DC829 for ; Fri, 10 Feb 2006 12:59:48 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k1AGxmXA021047; Fri, 10 Feb 2006 11:59:48 -0500 (EST) To: ken@scottshill.com cc: "A. Kretschmer" , pgsql-sql@postgresql.org Subject: Re: date In-reply-to: <1139588221.29808.7.camel@localhost.localdomain> References: <2865031.post@talk.nabble.com> <20060210063823.GC29845@webserv.wug-glas.de> <1139588221.29808.7.camel@localhost.localdomain> Comments: In-reply-to Ken Hill message dated "Fri, 10 Feb 2006 08:17:00 -0800" Date: Fri, 10 Feb 2006 11:59:48 -0500 Message-ID: <21046.1139590788@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.108 required=5 tests=[AWL=0.108] X-Spam-Score: 0.108 X-Spam-Level: X-Archive-Number: 200602/115 X-Sequence-Number: 24125 Ken Hill writes: > On Fri, 2006-02-10 at 07:38 +0100, A. Kretschmer wrote: >> You can't define the format in the db, but you can define the >> output-format with to_char(date, 'DD-MM-YYYY'); > You could also try using the data_part() function: Setting the DateStyle parameter may also be of use, particularly on the input side. regards, tom lane