Re: Date Anomaly?? - Mailing list pgsql-sql

From Tom Lane
Subject Re: Date Anomaly??
Date
Msg-id 27677.1052323985@sss.pgh.pa.us
Whole thread Raw
In response to Re: Date Anomaly??  (Thomas Good <tomg@sqlclinic.net>)
List pgsql-sql
Thomas Good <tomg@sqlclinic.net> writes:
> Bottom line: there is no way to return a MM-DD-YYYY value?

Certainly:

regression=# set DateStyle TO postgresql,us;
SET
regression=# select 'today'::date;   date
------------05-07-2003
(1 row)

Perhaps you are confused by the difference between timestamp and date?
        regards, tom lane



pgsql-sql by date:

Previous
From: Thomas Good
Date:
Subject: Re: Date Anomaly??
Next
From: Wei Weng
Date:
Subject: index defragmentation