pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: ken@scottshill.com
Cc: A. Kretschmer <andreas.kretschmer@schollglas.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: date
Date: Fri, 10 Feb 2006 11:59:48 -0500
Message-ID: <21046.1139590788@sss.pgh.pa.us> (raw)
In-Reply-To: <1139588221.29808.7.camel@localhost.localdomain>
References: <2865031.post@talk.nabble.com>
	<20060210063823.GC29845@webserv.wug-glas.de>
	<1139588221.29808.7.camel@localhost.localdomain>

Ken Hill <ken@scottshill.com> writes:
> On Fri, 2006-02-10 at 07:38 +0100, A. Kretschmer wrote:
>> You can't define the format in the db, but you can define the
>> output-format with to_char(date, 'DD-MM-YYYY');

> You could also try using the data_part() function:

Setting the DateStyle parameter may also be of use, particularly on the
input side.

			regards, tom lane



view thread (20+ messages)

Message-ID: <21046.1139590788@sss.pgh.pa.us>
Permalink:  ../21046.1139590788@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21046.1139590788@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ken@scottshill.com, andreas.kretschmer@schollglas.com
  Subject: Re: date
  In-Reply-To: <21046.1139590788@sss.pgh.pa.us>

* 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