Re: Convert java.sql.Date to java.util.Date - Mailing list pgsql-jdbc

From Charl Gerber
Subject Re: Convert java.sql.Date to java.util.Date
Date
Msg-id 20050307200728.24664.qmail@web41206.mail.yahoo.com
Whole thread Raw
In response to Convert java.sql.Date to java.util.Date  (Mican Bican <mican58@gmail.com>)
List pgsql-jdbc
Assume sDate is of type java.sql.Date. Then

java.util.Date jDate =
        new java.util.Date(sDate.getTime());


--- Mican Bican <mican58@gmail.com> wrote:
> 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
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org
>

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: postgre 7.3 / JSTL problem
Next
From: Charl Gerber
Date:
Subject: Re: postgre 7.3 / JSTL problem