Problem with to_date function

Поиск
Список
Период
Сортировка
От Gilberto C Andrade
Тема Problem with to_date function
Дата
Msg-id 430A2827.9060907@secad.to.gov.br
обсуждение исходный текст
Ответы Re: Problem with to_date function  (Jan de Visser <jdevisser@digitalfairway.com>)
Re: Problem with to_date function  (Kris Jurka <books@ejurka.com>)
Список 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 по дате отправления:

Предыдущее
От: Prasanth
Дата:
Сообщение: Re: Bad value for type date
Следующее
От: Jan de Visser
Дата:
Сообщение: Re: Problem with to_date function