|
Java.util.Date is a basic, all-purpose Date object. It simply stores a Date (as a long) and allows you to display it.
java.sql.Date extends java.util.Date to add the following functionality:
1) toString now outputs the date as "yyyy-mm-dd" instead of as a Locale specific String
2) add the valueOf method to read a String of "yyyy-mm-dd" format and parse it into a sql.Date object.
|