Received: from ara.zf.jcu.cz (ara.zf.jcu.cz [160.217.161.4]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3K7Sx371406 for ; Fri, 20 Apr 2001 03:29:00 -0400 (EDT) (envelope-from zakkr@zf.jcu.cz) Received: (from zakkr@localhost) by ara.zf.jcu.cz (8.9.3/8.9.3/Debian 8.9.3-21) id JAA21976; Fri, 20 Apr 2001 09:28:52 +0200 Date: Fri, 20 Apr 2001 09:28:52 +0200 From: Karel Zak To: Fabio Alberto Sobral Cc: pgsql-admin@postgresql.org Subject: Re: Help with postgres functions Message-ID: <20010420092852.A21932@ara.zf.jcu.cz> References: <200104191304.f3JD4go15378@sealine.lncc.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <200104191304.f3JD4go15378@sealine.lncc.br>; from sobral@lncc.br on Thu, Apr 19, 2001 at 10:04:42AM -0300 X-Archive-Number: 200104/79 X-Sequence-Number: 1216 On Thu, Apr 19, 2001 at 10:04:42AM -0300, Fabio Alberto Sobral wrote: > Dear Sirs, > > I have a timestamp atribute in my table and I want to get only the date of > this atribute. How can I do this? Does the extract or date_part functions > resolve my problem? Cast timestampt to date: myAttr::date or CAST(myAttr as date) Karel