pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Charl Gerber <charlgerber@yahoo.com>
To: Mican Bican <mican58@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Convert java.sql.Date to java.util.Date
Date: Mon, 7 Mar 2005 20:07:28 +0000 (GMT)
Message-ID: <20050307200728.24664.qmail@web41206.mail.yahoo.com> (raw)

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
> 



view thread (2+ messages)

Message-ID: <20050307200728.24664.qmail@web41206.mail.yahoo.com>
Permalink:  ../20050307200728.24664.qmail@web41206.mail.yahoo.com/
Also on:    postgresql.org/message-id/20050307200728.24664.qmail@web41206.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: charlgerber@yahoo.com, mican58@gmail.com
  Subject: Re: Convert java.sql.Date to java.util.Date
  In-Reply-To: <20050307200728.24664.qmail@web41206.mail.yahoo.com>
  References: <20050307200728.24664.qmail@web41206.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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