List:General Discussion« Previous MessageNext Message »
From:David Griffiths Date:October 10 2006 9:01pm
Subject:RE: java.util.Date versus java.sql.Date
View as plain text  
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.


-----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



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?





java.util.Date versus java.sql.DateFeliks Shvartsburd10 Oct
  • RE: java.util.Date versus java.sql.DateDavid Griffiths10 Oct