troubles with datestyle - Mailing list pgsql-general

From Herbert Liechti
Subject troubles with datestyle
Date
Msg-id 382C2BCB.59D22E12@thinx.ch
Whole thread Raw
Responses Re: [GENERAL] troubles with datestyle
List pgsql-general
Hi

Is there a way to select by date in format which is language independent.

select name, ....., date from table
where date >= '1-1-1999' and date <= '11-1-1999';

I use the Perl DBI und Postgres DBD driver. In the begin of the session
I set the datestyle variable to the current user language (german or us).
I loose this setting when I set the datestyle to 'german'. When I
do a

select name, ....., date from table
where date >= '1.1.1999' and date <= '1.11.1999';

the resultset is from january first to january 11 instead to the first of
november.

Any hints?
Herbie

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Herbert Liechti                            E-Mail: Herbert.Liechti@thinx.ch
ThinX networked business services               Stahlrain 10, CH-5200 Brugg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




pgsql-general by date:

Previous
From: jose soares
Date:
Subject: Re: [GENERAL] About Date field
Next
From: Bob Kline
Date:
Subject: Re: [GENERAL] troubles with datestyle