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 5DC01D1B4F8 for ; Wed, 22 Oct 2003 08:20:04 +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 59389-04 for ; Wed, 22 Oct 2003 05:19:35 -0300 (ADT) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by svr1.postgresql.org (Postfix) with ESMTP id B0DE5D1B529 for ; Wed, 22 Oct 2003 05:19:28 -0300 (ADT) Received: from klaster.net (core-1.citynet.pl [80.48.135.69]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id 65AFE2B3CB; Wed, 22 Oct 2003 10:18:06 +0200 (CEST) Message-ID: <3F963D41.3000307@klaster.net> Date: Wed, 22 Oct 2003 10:18:09 +0200 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; pl-PL; rv:1.5) Gecko/20030916 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: Abdul Wahab Dahalan Cc: pgsql-sql@postgresql.org Subject: Re: Timestamp References: <3F963983.2020505@mimos.my> In-Reply-To: <3F963983.2020505@mimos.my> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/282 X-Sequence-Number: 15682 Dnia 2003-10-22 10:02, Użytkownik Abdul Wahab Dahalan napisał: > Hi ! > In my database I've a field "departure" with timestamp without time zone > data type. > eg : > departure > 2003-11-01 14:29:46 > > Now I want to select it as in this format 01-11-2003 14:29:46 How should > I do it?. You can find it in documentation - 6.7. Data Type Formatting Functions select to_char(departure,'DD-MM-YYYY HH24:MI:SS') ... Regards, Tomasz Myrta