Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f0IJv1098645 for ; Thu, 18 Jan 2001 14:57:01 -0500 (EST) (envelope-from pgsql-admin-owner@postgresql.org) Received: from henry.newn.cam.ac.uk (henry.newn.cam.ac.uk [131.111.204.130]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0IFsl066853; Thu, 18 Jan 2001 10:54:47 -0500 (EST) (envelope-from prlw1@newn.cam.ac.uk) Received: from [131.111.204.180] (helo=quartz.newn.cam.ac.uk) by henry.newn.cam.ac.uk with esmtp (Exim 3.13 #1) id 14JHOi-0000H3-00; Thu, 18 Jan 2001 15:54:48 +0000 Received: from prlw1 by quartz.newn.cam.ac.uk with local (Exim 3.13 #1) id 14JHNQ-000320-00; Thu, 18 Jan 2001 15:53:28 +0000 Date: Thu, 18 Jan 2001 15:53:28 +0000 From: Patrick Welche To: Ian Harding Cc: pgsql-admin@postgresql.org, pgsql-general@postgresql.org Subject: Re: [GENERAL] Re: date/time Message-ID: <20010118155328.K29761@quartz.newn.cam.ac.uk> Reply-To: prlw1@cam.ac.uk References: <3A65105F.778D73CA@pakrat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3A65105F.778D73CA@pakrat.com>; from iharding@pakrat.com on Tue, Jan 16, 2001 at 07:24:15PM -0800 X-Archive-Number: 200101/120 X-Sequence-Number: 497 On Tue, Jan 16, 2001 at 07:24:15PM -0800, Ian Harding wrote: > snef wrote: > > > Hi, > > I have read the man's with Postgres. > > But I can't seem to get Postgres use European time notation (dd/mm/yyyy). > > > > Where can I adjust this? (in which file?) > > > > Snef > > Actually, I think you may want the environment variable PGDATESTYLE. It > sets the datestyle for new connections. That is all I know about it! Either set the environment variable PGDATESTYLE to 'Postgres,European' or send the query set datestyle='Postgres,European' (I think SQL instead of Postgres works too) eg: quartz% printenv PGDATESTYLE Postgres,European rfb=# show datestyle; NOTICE: DateStyle is Postgres with European conventions SHOW VARIABLE Cheers, Patrick