Re: French date

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Jean-Michel Chabanne <jeanmichel(dot)chabanne(at)free(dot)fr>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: French date
Date: 2003-01-01 18:48:23
Message-ID: 200301011848.h01ImNr04849@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

]Jean-Michel Chabanne wrote:
> evon600c wrote:
> > Hello,
> > Is there a simple way to configure the postgres server so that it always
> > understand the french date format 'dd/mm/yyyy' ?
> > Or is there a call i can perform in my client application that could
> > have the same effect ?
> >
> > I wish i had not to set some easy forgetable environment variables such
> > as LC_TIME.
> >
> > For instance in SQL Server i was able to issue a "set dateformat 'dmy'"
> > in the begining of all my transactions to get it done and that was fine
> > for me (and my customers...)
> >
> > Many thank's in advance.
>
> Wen connected you may do SET DateStyle = 'SQL,European';
>
> Or, with pgsql, before the connection you may export the variable
> PGDATESTYLE='SQL,European'
>
> This should work fine, but I have noticed that it does not work on one
> of my DB and I don't know why.

You can use set datestyle in postgresql.conf in 7.3.X. In 7.2, it had
to be an environment variable before the postmaster started, or us SET
as a command.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jan Ploski 2003-01-01 19:07:13 Re: Unicode database + JDBC driver performance
Previous Message Jochem van Dieten 2003-01-01 16:51:58 Re: creating languages in the pg_catalog schema?