RE: non-us datestyle

From: "Oscar Serrano" <oserra(at)fondos(dot)net>
To: "Cedar Cox" <cedarc(at)visionforisrael(dot)com>, <pgsql-interfaces(at)postgresql(dot)org>
Subject: RE: non-us datestyle
Date: 2001-07-04 14:41:38
Message-ID: LLEKJGBGFGPBMIGHIFFOGEGLCHAA.oserra@fondos.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces pgsql-odbc

> -----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

>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Cedar Cox 2001-07-04 14:48:02 RE: non-us datestyle
Previous Message Constantin Teodorescu 2001-07-04 13:02:02 Re: Re: [SQL] indexing arrays in pgaccess's query interface is failing

Browse pgsql-odbc by date

  From Date Subject
Next Message Cedar Cox 2001-07-04 14:48:02 RE: non-us datestyle
Previous Message Cedar Cox 2001-07-04 12:52:49 non-us datestyle