Received: from candle.pha.pa.us (pgman@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id JAA41950 for ; Wed, 12 Jan 2000 09:47:02 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id JAA29068; Wed, 12 Jan 2000 09:42:28 -0500 (EST) From: Bruce Momjian Message-Id: <200001121442.JAA29068@candle.pha.pa.us> Subject: Re: [ADMIN] Datetypes In-Reply-To: <266FDEFCF2BD22479AC88FCEBF070CBFA5BA@HAN1EXCH01.se.ads.telia.se> from "Strand Johan F." at "Jan 12, 2000 02:35:43 pm" To: "Strand Johan F." Date: Wed, 12 Jan 2000 09:42:28 -0500 (EST) CC: "[Postgresql fr_ga (E-mail)]" X-Mailer: ELM [version 2.4ME+ PL66 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hello there ! > > How do I do if I want to change the variable > DATETYPES or PGDATESTYLE to ISO. > I want to se my date column like this 2000-01-12 > and not 01-12-2000 when I do a select on it. SET DATESTYLE TO 'ISO' should do it. See my book for a section on date styles in the web documentation page. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026