Re: datestyle on windows environment: how to set?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "filippo" <filippo2991(at)virgilio(dot)it>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: datestyle on windows environment: how to set?
Date: 2006-06-04 02:10:11
Message-ID: 25935.1149387011@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"filippo" <filippo2991(at)virgilio(dot)it> writes:
> I'd like to have
> DD-MM-YYYY for my timestamp field.

The closest display format to that is 'SQL, DMY':

regression=# set datestyle = 'sql, dmy';
SET
regression=# select current_date;
date
------------
03/06/2006
(1 row)

See the discussion of datestyle values in
http://www.postgresql.org/docs/8.1/static/datatype-datetime.html#DATATYPE-DATETIME-OUTPUT

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2006-06-05 02:12:39 Re: Get max value from an comma separated string
Previous Message operationsengineer1 2006-06-02 20:06:40 Using Query Result in WHERE Clause