From: Tino Wildenhain <tino@wildenhain.de>
To: Garry Saddington <garry@schoolteachers.co.uk>
Cc: pgsql-general@postgresql.org
Subject: Re: date format
Date: Mon, 05 Mar 2007 07:14:32 +0100
Message-ID: <45EBB548.5090502@wildenhain.de> (raw)
In-Reply-To: <200703041247.05097.garry@schoolteachers.co.uk>
References: <200703041247.05097.garry@schoolteachers.co.uk>
Garry Saddington schrieb:
> I have 'datestyle ISO,DMY' set in postgresql.conf but the date output is still
> rendered in the format (y,m,d) . How can I change this behaviour?
> regards
> garry
>
See my answer on the Zope list. The style however influences the way
dates are parsed by default, so you need to take care when you
feed dates from your application to database.
You should also use to_date() to make it explicit.
Regards
Tino
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-general@postgresql.org
Cc: tino@wildenhain.de, garry@schoolteachers.co.uk
Subject: Re: date format
In-Reply-To: <45EBB548.5090502@wildenhain.de>
References: <200703041247.05097.garry@schoolteachers.co.uk> <45EBB548.5090502@wildenhain.de>
* 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