Problem with to_date function - Mailing list pgsql-jdbc

From Gilberto C Andrade
Subject Problem with to_date function
Date
Msg-id 430A2827.9060907@secad.to.gov.br
Whole thread Raw
Responses Re: Problem with to_date function  (Jan de Visser <jdevisser@digitalfairway.com>)
Re: Problem with to_date function  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc
Hi,

I would like to know if the following is the expected result:
from psql:
bcoproducao=# select to_date(current_date, 'DD/MM/YYYY'), current_date;
  to_date   |    date
------------+------------
 22/08/2005 | 22/08/2005
(1 row)

from my jdbc code:
            rs = stmt.executeQuery("select to_date(current_date,
'DD/MM/YYYY'), current_date");
            while (rs.next()) {
                System.out.println(rs.getString(1) + " | "
+rs.getString(2));
            }
result:
            0028-01-26 | 2005-08-22

Any advice here?
Thanks!
Gilberto



pgsql-jdbc by date:

Previous
From: Prasanth
Date:
Subject: Re: Bad value for type date
Next
From: Jan de Visser
Date:
Subject: Re: Problem with to_date function