pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oscar Serrano <oserra@fondos.net>
To: Cedar Cox <cedarc@visionforisrael.com>
To: pgsql-interfaces@postgresql.org
Subject: RE: non-us datestyle
Date: Wed, 4 Jul 2001 16:41:38 +0200
Message-ID: <LLEKJGBGFGPBMIGHIFFOGEGLCHAA.oserra@fondos.net> (raw)
In-Reply-To: <Pine.LNX.4.21.0107041551020.21649-100000@nanu.visionforisrael.com>



> -----Mensaje original-----
> De: pgsql-interfaces-owner@postgresql.org
> [mailto:pgsql-interfaces-owner@postgresql.org]En nombre de Cedar Cox
> Enviado el: miercoles, 04 de julio de 2001 14:53
> Para: pgsql-interfaces@postgresql.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
>




view thread (9+ messages)  latest in thread

Message-ID: <LLEKJGBGFGPBMIGHIFFOGEGLCHAA.oserra@fondos.net>
Permalink:  ../LLEKJGBGFGPBMIGHIFFOGEGLCHAA.oserra@fondos.net/
Also on:    postgresql.org/message-id/LLEKJGBGFGPBMIGHIFFOGEGLCHAA.oserra@fondos.net

 · 

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-interfaces@postgresql.org
  Cc: oserra@fondos.net, cedarc@visionforisrael.com
  Subject: RE: non-us datestyle
  In-Reply-To: <LLEKJGBGFGPBMIGHIFFOGEGLCHAA.oserra@fondos.net>

* 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