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 f1GJ6vx44119 for ; Fri, 16 Feb 2001 14:06:57 -0500 (EST) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1FA15x69889 for ; Thu, 15 Feb 2001 05:01:05 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f1F9dbj83232 for pgsql-sql@postgresql.org; Thu, 15 Feb 2001 04:39:37 -0500 (EST) (envelope-from news) From: gighen.daisuku@SUCKYOURSPAMlibero.it (Gighen Daisuku) X-Newsgroups: comp.databases.postgresql.sql Subject: Re: problem with casting Date: Thu, 15 Feb 2001 09:39:37 +0000 (UTC) Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 11 Message-ID: References: <200102142105.f1EL5fx84448@mail.postgresql.org> Reply-To: gighen.daisuku@SUCKYOURSPAMlibero.it Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: scrappy@hub.org User-Agent: slrn/0.9.6.3 (Linux) To: pgsql-sql@postgresql.org X-Archive-Number: 200102/286 X-Sequence-Number: 1477 In data Wed, 14 Feb 2001 21:10:30 +0000 (UTC), postgresql scrive: >I have a table that has a 'date' column. In psql I tried to do a > >select proofdate::text from openjobs where jobno = '10625'; > >responce:   can not cast type 'date' to 'text' > >Did i miss-read this section. I thought I could cast the date to text. has anyone seen >this or am I missreading the docs? > select to_char(proofdate, 'dd/mm/yyyy') from openjobs where jobno = '10625';