Received: from janeway.cistron.net (janeway.cistron.net [195.64.65.23]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0GH0Z008185 for ; Tue, 16 Jan 2001 12:00:36 -0500 (EST) (envelope-from jdassen@cistron-office.nl) Received: from odin (jdassen@odin.cistron-office.nl [195.64.65.236]) by janeway.cistron.net (8.9.3/8.9.3/Debian 8.9.3-6) with SMTP id SAA24663 for ; Tue, 16 Jan 2001 18:00:30 +0100 Received: by odin (sSMTP sendmail emulation); Tue, 16 Jan 2001 18:00:30 +0100 Date: Tue, 16 Jan 2001 18:00:30 +0100 From: "J.H.M. Dassen (Ray)" To: pgsql-general@postgresql.org Subject: Re: date/time Message-ID: <20010116180030.B8328@cistron-office.nl> Mail-Followup-To: pgsql-general@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from snef@soneramail.nl on Mon, Jan 15, 2001 at 11:09:26PM +0100 X-Archive-Number: 200101/693 X-Sequence-Number: 2880 On Mon, Jan 15, 2001 at 23:09:26 +0100, snef wrote: > But I can't seem to get Postgres use European time notation (dd/mm/yyyy). Do SET DATESTYLE TO 'POSTGRES,EUROPEAN' and use European time notation with hyphens, e.g. SELECT * FROM Foo WHERE start >= '31-12-2000' > Where can I adjust this? (in which file?) On my system, it's /etc/postgresql/postmaster.init, the "PGDATESTYLE" setting. HTH, Ray -- LWN normally tries to avoid talking much about Microsoft - it is simply irrelevant to the free software world most of the time. http://www.lwn.net/2000/0406/