From: Patrick Welche <prlw1@newn.cam.ac.uk>
To: Ian Harding <iharding@pakrat.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Re: date/time
Date: Thu, 18 Jan 2001 15:53:28 +0000
Message-ID: <20010118155328.K29761@quartz.newn.cam.ac.uk> (raw)
In-Reply-To: <3A65105F.778D73CA@pakrat.com>
References: <MPG.14cd937c14c99487989704@news.soneraplaza.nl>
<3A65105F.778D73CA@pakrat.com>
On Tue, Jan 16, 2001 at 07:24:15PM -0800, Ian Harding wrote:
> snef wrote:
>
> > Hi,
> > I have read the man's with Postgres.
> > But I can't seem to get Postgres use European time notation (dd/mm/yyyy).
> >
> > Where can I adjust this? (in which file?)
> >
> > Snef
>
> Actually, I think you may want the environment variable PGDATESTYLE. It
> sets the datestyle for new connections. That is all I know about it!
Either set the environment variable PGDATESTYLE to 'Postgres,European' or
send the query
set datestyle='Postgres,European'
(I think SQL instead of Postgres works too)
eg:
quartz% printenv PGDATESTYLE
Postgres,European
rfb=# show datestyle;
NOTICE: DateStyle is Postgres with European conventions
SHOW VARIABLE
Cheers,
Patrick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: prlw1@newn.cam.ac.uk, iharding@pakrat.com, pgsql-general@postgresql.org
Subject: Re: [GENERAL] Re: date/time
In-Reply-To: <20010118155328.K29761@quartz.newn.cam.ac.uk>
References: <MPG.14cd937c14c99487989704@news.soneraplaza.nl> <3A65105F.778D73CA@pakrat.com> <20010118155328.K29761@quartz.newn.cam.ac.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox