pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedConvert java.sql.Date to java.util.Date
2+ messages / 2 participants
[nested] [flat]
* Convert java.sql.Date to java.util.Date
@ 2005-03-07 20:01 Mican Bican <mican58@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Mican Bican @ 2005-03-07 20:01 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Convert java.sql.Date to java.util.Date
@ 2005-03-07 20:07 Charl Gerber <charlgerber@yahoo.com>
0 siblings, 0 replies; 2+ messages in thread
From: Charl Gerber @ 2005-03-07 20:07 UTC (permalink / raw)
To: Mican Bican <mican58@gmail.com>; 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
>
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-03-07 20:07 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-07 20:01 Convert java.sql.Date to java.util.Date Mican Bican <mican58@gmail.com>
2005-03-07 20:07 Re: Convert java.sql.Date to java.util.Date Charl Gerber <charlgerber@yahoo.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox