pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: J.H.M. Dassen (Ray) <jdassen@cistron-office.nl>
To: pgsql-general@postgresql.org
Subject: Re: date/time
Date: Tue, 16 Jan 2001 18:00:30 +0100
Message-ID: <20010116180030.B8328@cistron-office.nl> (raw)
In-Reply-To: <MPG.14cd937c14c99487989704@news.soneraplaza.nl>
References: <MPG.14cd937c14c99487989704@news.soneraplaza.nl>

On Mon, Jan 15, 2001 at 23:09:26 +0100, snef wrote:
> But I can't seem to get Postgres use European time notation (dd/mm/yyyy).

Do
	SET DATESTYLE TO 'POSTGRES,EUROPEAN'
and use European time notation with hyphens, e.g.
	SELECT * FROM Foo WHERE start >= '31-12-2000'

> Where can I adjust this? (in which file?)

On my system, it's /etc/postgresql/postmaster.init, the "PGDATESTYLE"
setting.

HTH,
Ray
-- 
LWN normally tries to avoid talking much about Microsoft - it is simply
irrelevant to the free software world most of the time.
        http://www.lwn.net/2000/0406/



view thread (5+ messages)  latest in thread

Message-ID: <20010116180030.B8328@cistron-office.nl>
Permalink:  ../20010116180030.B8328@cistron-office.nl/
Also on:    postgresql.org/message-id/20010116180030.B8328@cistron-office.nl

 · 

reply

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: jdassen@cistron-office.nl, pgsql-general@postgresql.org
  Subject: Re: date/time
  In-Reply-To: <20010116180030.B8328@cistron-office.nl>
  References: <MPG.14cd937c14c99487989704@news.soneraplaza.nl> <20010116180030.B8328@cistron-office.nl>

* 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