output format for dates

From: am(at)fx(dot)ro
To: pgsql-general(at)postgresql(dot)org
Subject: output format for dates
Date: 2002-09-23 08:02:04
Message-ID: 20020923110204.A4629@coto
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
>So, here comes my question: is it possible to create a new
>custom datestyle and set it as default ?

Browsing the sources, i've found a function EncodeDateOnly() in
src/backend/utils/adt which seems to be the function that generates
strings representing dates.

It seems easy to add a 'case' statement for a new datestyle.
But, i guess that won't be enough.

Where else should I add the new datestyle, so that i'll be able to
use it with SET DATESTYLE ?

Thanks in advance,
Adrian Maier (am(at)fx(dot)ro)

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2002-09-23 11:45:32 Re: Tips for re-using function results within single insert
Previous Message Yury Bokhoncovich 2002-09-23 05:38:54 Re: Open Source Database article