Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1FGU3x08684 for ; Thu, 15 Feb 2001 11:30:03 -0500 (EST) (envelope-from josh@agliodbs.com) Received: from [207.172.28.154] (HELO agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 3.3) with ESMTP id 1191000; Thu, 15 Feb 2001 08:29:58 -0800 Message-ID: <3A8C040F.E82255AE@agliodbs.com> Date: Thu, 15 Feb 2001 08:30:07 -0800 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions X-Mailer: Mozilla 4.73 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: postgresql , sqllist Subject: Re: problem with casting References: <200102142105.f1EL5fx84448@mail.postgresql.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200102/279 X-Sequence-Number: 1470 Ted, > 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? 'fraid so. You cannot cast Date as Text, because (presumably) the DB engine doesn't know how you want to format the date. Instead, use the to_char builtin function, as defined in the docs: http://www.postgresql.org/users-lounge/docs/7.0/postgres/functions2976.htm Share & Enjoy! -Josh Berkus -- ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco