Re: set datestyle to European PROBLEM

From: Roelof Sondaar <roelof(dot)sondaar(at)wmdata(dot)nl>
To: "Mailing List, PostgreSQL-sql" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: set datestyle to European PROBLEM
Date: 2001-06-21 09:06:21
Message-ID: 3B31B90D.A5EA90F8@wmdata.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(dot)sondaar(at)wmdata(dot)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
*******************************************************

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2001-06-21 09:11:17 Re: Extracting date from epoche
Previous Message Jie Liang 2001-06-21 06:03:31 plsql in 7.1