Skip site navigation (1) Skip section navigation (2)

Re: Jdbc : DateStyle problem

From: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Jdbc : DateStyle problem
Date: 2007-09-07 12:07:58
Message-ID: 200709071507.58540.achill@matrix.gatewaynet.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Στις Παρασκευή 07 Σεπτέμβριος 2007 11:05, ο/η Laurent LS. Savary έγραψε:
> Hi,
>
> I have a weird problem with jdbc PostGreSql driver 3
[snip]

Since you are working with java it is useless to try to format/parse 
dates/timestamps with DateStyle.
Setting DateStyle is great maybe for dba scripts/reports/etc..
but for your case, just use java.text.SimpleDateFormat for both 
parsing/printing.

-- 
Achilleas Mantzios

In response to

pgsql-jdbc by date

Next:From: Oliver JowettDate: 2007-09-07 12:28:46
Subject: Re: Jdbc : DateStyle problem
Previous:From: Heikki LinnakangasDate: 2007-09-07 11:33:13
Subject: Re: Caching driver on pgFoundry?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group