pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roelof Sondaar <roelof.sondaar@wmdata.nl>
To: Mailing List, PostgreSQL-sql <pgsql-sql@postgresql.org>
Subject: Re: set datestyle to European  PROBLEM
Date: Thu, 21 Jun 2001 11:06:21 +0200
Message-ID: <3B31B90D.A5EA90F8@wmdata.nl> (raw)
References: <Pine.LNX.4.05.10106150951100.6628-100000@sunrise.radiostudiodelta.it>

Hello Alessandro,

The manual I have says the following about Date/Time Styles:
- 4 styles (ISO-8601, SQL, Postgres, German)
The one which resembles your layout is German.
I looked it up in Bruce Momjians book.

Best regards,
Roelof


Alessandro Rossi schreef:
> 
> I have the defaul installation of postgres 7.0.3 and on another machine
> 7.1.2 on redhat 7.1
> 
> I cannont get the date in correct form:
> 
> dbme=# select data_ar from equipment limit 5;
>   data_ar
> ------------
>  2001-11-05
>  2001-05-17
>  2001-05-28
>  2001-05-28
>  2001-05-22
> (5 rows)
> 
> then:
> 
> dbme=# set datestyle to European;
> SET VARIABLE
> 
> dbme=# select data_ar from equipment limit 5;
>   data_ar
> ------------
>  2001-11-05
>  2001-05-17
>  2001-05-28
>  2001-05-28
>  2001-05-22
> (5 rows)
> 
> Is this a bug ?
> 
> I think i should get dd-mm-yyy date format and not yyyy-mm-dd
> 
> Is postgres using ISO date format as default ?
> 
> Thanks
> 
> Alex
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

-- 
Roelof Sondaar
WM-data Zwolle B.V.
Russenweg 5
P O Box 391
8000 AJ  ZWOLLE
The Netherlands

E-mail:	roelof.sondaar@wmdata.nl
Telephone:+31(0)384 977 366
Fax:	+31(0)384 977 600
WWW:	www.wmdata.nl

*******************************************************
Disclaimer

This email is confidential and intended solely for the use of
the individual to whom it is addressed. Any views or opinions
presented are solely those of the author and do not
necessarily represent those of WM-data Zwolle B.V.
If you are not the intended recipient, be advised that you
have received this email in error and that any use,
dissemination, forwarding, printing or copying of this email
is strictly prohibited.

If you have received this email in error please notify
WM-data Zwolle B.V.  Helpdesk by telephone on
+31(0)384 977 319
*******************************************************



view thread (3+ messages)

Message-ID: <3B31B90D.A5EA90F8@wmdata.nl>
Permalink:  ../3B31B90D.A5EA90F8@wmdata.nl/
Also on:    postgresql.org/message-id/3B31B90D.A5EA90F8@wmdata.nl

 · 

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-sql@postgresql.org
  Cc: roelof.sondaar@wmdata.nl
  Subject: Re: set datestyle to European  PROBLEM
  In-Reply-To: <3B31B90D.A5EA90F8@wmdata.nl>

* 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