Convert java.sql.Date to java.util.Date

From: Mican Bican <mican58(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Convert java.sql.Date to java.util.Date
Date: 2005-03-07 20:01:26
Message-ID: 422CB316.9000507@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi,

How can I Convert a java.sql.date to java.util.date the other way is not
a problem... a method like this..

public java.util.Date getUtilDate(java.sql.Date in){

java.util.Date date;

...convert...convert...

return date;

}

thank.. you!!

best regards.

Mican Bican

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2005-03-07 20:04:39 Re: java.sql.date insert as null
Previous Message David Gagnon 2005-03-07 19:58:45 JDBC error under RH9 for PG7.4/TOMCAT4.1 but not under WINDOWS