Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 41A4E476175 for ; Tue, 14 May 2002 08:30:55 -0400 (EDT) Received: from temp.joelburton.com (unknown [209.190.238.101]) by postgresql.org (Postfix) with ESMTP id 7ADCC476012 for ; Tue, 14 May 2002 08:27:10 -0400 (EDT) Received: from joeltf0d13cyyp (unknown [209.190.238.100]) by temp.joelburton.com (Postfix) with SMTP id 780822B981; Tue, 14 May 2002 08:32:17 -0400 (EDT) From: "Joel Burton" To: , Subject: Re: date_part, how to use Date: Tue, 14 May 2002 08:27:12 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200205/137 X-Sequence-Number: 7773 Will SELECT CAST( tpl_start_timestamp AS date ) work? Sigh. CFML is so ugly. Anyway, hope this helps. Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Knowledge Management & Technology Consultant > -----Original Message----- > From: pgsql-sql-owner@postgresql.org > [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of > juerg.rietmann@pup.ch > Sent: Tuesday, May 14, 2002 5:29 AM > To: pgsql-sql@postgresql.org > Subject: [SQL] date_part, how to use > > > Hello there > > How can I extract the date part from a timestamp ? Thanks for any help ! > > select * from transport_log > where > tpl_status != '0' and > tpl_zylinder LIKE '%' ' > #session.filter_zid#%' and > datepart('dd.mm.yyyy',tpl_start_timestamp) > #session.filter_FromDate#' EQ ''> '01.01.1900' ' > #session.filter_FromDate#' > order by tpl_transport > > > Regards ... jr > > __________________________________________________ > > PFISTER + PARTNER, SYSTEM - ENGINEERING AG > Juerg Rietmann > Grundstrasse 22a > 6343 Rotkreuz > Switzerland > > internet : www.pup.ch > phone : +4141 790 4040 > fax : +4141 790 2545 > mobile : +4179 211 0315 > __________________________________________________ > > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster >