Thread: Convert java.sql.Date to java.util.Date
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
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 >