Skip site navigation (1) Skip section navigation (2)

RE: non-us datestyle

From: "Oscar Serrano" <oserra(at)fondos(dot)net>
To: "Cedar Cox" <cedarc(at)visionforisrael(dot)com>
Cc: <pgsql-interfaces(at)postgresql(dot)org>
Subject: RE: non-us datestyle
Date: 2001-07-04 15:18:50
Message-ID: LLEKJGBGFGPBMIGHIFFOAEGMCHAA.oserra@fondos.net (view raw or flat)
Thread:
Lists: pgsql-interfacespgsql-odbc

> -----Mensaje original-----
> De: Cedar Cox [mailto:cedarc(at)visionforisrael(dot)com]
> Enviado el: miercoles, 04 de julio de 2001 16:48
> Para: Oscar Serrano
> CC: pgsql-interfaces(at)postgresql(dot)org
> Asunto: RE: [INTERFACES] non-us datestyle
> 
> 
> 
> On Wed, 4 Jul 2001, Oscar Serrano wrote:
> > 
> > > -----Mensaje original-----
> > > De: pgsql-interfaces-owner(at)postgresql(dot)org
> > > [mailto:pgsql-interfaces-owner(at)postgresql(dot)org]En nombre de Cedar Cox
> > > Enviado el: miercoles, 04 de julio de 2001 14:53
> > > Para: pgsql-interfaces(at)postgresql(dot)org
> > > Asunto: [INTERFACES] non-us datestyle
> > >
> > > Is there a way to set the default date style to non-US (European)?  I
> > > didn't see any compile or run time options, just per 
> connection options.
> > > (pg v1.7)
> > >
> > > -Cedar
> > 
> > Well I'm not sure if you are asking for this but...
> > If you define the shell variable PGDATESTYLE to, for example, 
> SQL, all date
> > are returned like this:
> > dd/mm/yyyy
> > There are serveral values you can assign to PGDATESTYLE.
> > You can execute, prior to a query this sentence:
> > SET DATESTYLE TO SQL
> 
> I'll be using ODBC so there's no shell variable to set...  This is why I
> want a global option.

But, have you tried it?
Beacuse I use DBI from a windows machine with ActivePerl and it works.

Oscar Serrano.




> -Cedar
> 
> 

In response to

pgsql-odbc by date

Next:From: Hannu KrosingDate: 2001-07-04 15:22:42
Subject: Re: non-us datestyle
Previous:From: Cedar CoxDate: 2001-07-04 14:48:02
Subject: RE: non-us datestyle

pgsql-interfaces by date

Next:From: Michael DavisDate: 2001-07-04 15:21:55
Subject: RE: RE: Question
Previous:From: Cedar CoxDate: 2001-07-04 14:48:02
Subject: RE: non-us datestyle

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group