X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8023AD1B4EF for ; Wed, 22 Oct 2003 08:25:44 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 65152-03 for ; Wed, 22 Oct 2003 05:25:15 -0300 (ADT) Received: from matrix.gatewaynet.com (unknown [217.19.69.50]) by svr1.postgresql.org (Postfix) with ESMTP id 26EE9D1B525 for ; Wed, 22 Oct 2003 05:25:06 -0300 (ADT) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id h9M8d0dN025699; Wed, 22 Oct 2003 11:39:00 +0300 Received: from localhost (achill@localhost) by matrix.gatewaynet.com (8.12.8/8.12.8/Submit) with ESMTP id h9M8d0Uk025695; Wed, 22 Oct 2003 11:39:00 +0300 Date: Wed, 22 Oct 2003 11:39:00 +0300 (EEST) From: achill@matrix.gatewaynet.com To: Abdul Wahab Dahalan Cc: pgsql-sql@postgresql.org Subject: Re: Timestamp In-Reply-To: <3F963983.2020505@mimos.my> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/283 X-Sequence-Number: 15683 On Wed, 22 Oct 2003, Abdul Wahab Dahalan wrote: > Hi ! > In my database I've a field "departure" with timestamp without time zone > data type. > eg : > departure > 2003-11-01 14:29:46 Maybe SET DateStyle TO 'German' ; SELECT replace(departure,'.','-') from ; is close to what you want, but better leave it default and format the date (input/output) from your app. > > Now I want to select it as in this format 01-11-2003 14:29:46 How should > I do it?. > > Thank you for any help. > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > -- -Achilleus