Re: Convert TimeStamp to Date - Mailing list pgsql-general

From Dmitry Tkach
Subject Re: Convert TimeStamp to Date
Date
Msg-id 3F1F0DF2.9020106@openratings.com
Whole thread Raw
In response to Re: Convert TimeStamp to Date  (Ron Johnson <ron.l.johnson@cox.net>)
List pgsql-general
Ron Johnson wrote:

>tree=# select date('1993-08-10 17:48:41.074');
>    date
>------------
> 10-08-1993
>(1 row)
>
>
>
This *does* work on 7.3 (I suppose, because it ends up converting *text*
to date, not *timestamp*, and it is timestamp conversion, that's broken):

testdb=# select date('1993-08-10 17:48:41.074'::timestamp);
    date
------------
 1993-08-11
(1 row)


Dima



pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Convert TimeStamp to Date
Next
From: Errol Neal
Date:
Subject: Re: Increasing Max # of connections