| From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
|---|---|
| To: | Michal Kalanski <kalanskim(at)zetokatowice(dot)pl> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Dates in inserts |
| Date: | 2003-04-01 13:00:26 |
| Message-ID: | 20030401130025.GA13578@svana.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)svana(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michal Kalanski | 2003-04-01 13:14:14 | Re: Dates in inserts |
| Previous Message | Michal Kalanski | 2003-04-01 12:56:36 | Dates in inserts |