Re: Help with postgres functions - Mailing list pgsql-admin

From Karel Zak
Subject Re: Help with postgres functions
Date
Msg-id 20010420092852.A21932@ara.zf.jcu.cz
Whole thread Raw
In response to Help with postgres functions  (Fabio Alberto Sobral <sobral@lncc.br>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: "Jacopo Silva"
Date:
Subject: Re: Bugs in PostgreSQL v7.1 rpms for RedHat
Next
From: tankgirl@worldonline.es
Date:
Subject: System Catalogs