A java.sql.Date does not have time information - just the day-month-year.
A java.util.Date has date and time information.
If you need date and time, use java.sql.Timestamp.
It's not very pretty moving from one to the other.
David
-----Original Message-----
From: Feliks Shvartsburd [mailto:fshvartsburd@stripped]
Sent: October 10, 2006 12:04 PM
To: mysql@stripped
Subject: java.util.Date versus java.sql.Date
Hello
Besides some obvious differences in implementations between util.Date
and sql.Date are there any other issues/advantages or disadvantages
using one versus the other?
Thanks

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.