Re: Dates in inserts - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Dates in inserts
Date
Msg-id 20030401130025.GA13578@svana.org
Whole thread Raw
In response to Dates in inserts  ("Michal Kalanski" <kalanskim@zetokatowice.pl>)
List pgsql-general
On Tue, Apr 01, 2003 at 02:56:36PM +0200, Michal Kalanski wrote:
> insert into dates values('13.01.03');
> insert into dates values('01.13.03');

>         date
> ---------------------
>  2003-01-13 00:00:00
>  2003-01-13 00:00:00
> (2 rows)

Looks like the server is confused about the date format you want to use.
Decide on European or US and do a SET DATESTYLE as appropriate.

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> "the West won the world not by the superiority of its ideas or values or
> religion but rather by its superiority in applying organized violence.
> Westerners often forget this fact, non-Westerners never do."
>   - Samuel P. Huntington

Attachment

pgsql-general by date:

Previous
From: "Michal Kalanski"
Date:
Subject: Dates in inserts
Next
From: "Michal Kalanski"
Date:
Subject: Re: Dates in inserts