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.
From: Feliks Shvartsburd [mailto:fshvartsburd@stripped]
Sent: October 10, 2006 12:04 PM
Subject: java.util.Date versus java.sql.Date
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?