On Fri, 6 Apr 2001, Michael Wentzel wrote:
tc> For example,
tc> DateTest.java:20: cannot resolve symbol
tc> symbol : constructor Date ()
tc> location: class java.sql.Date
tc> Date d = new Date();
tc> ^
You got to explicitly tell which Date object you want to use:
ex.: java.util.Date d = new java.sql.Date((Long)l);
You can also look at the java.text.SimpleDateFormat class:
java.lang.Object
|
+--java.text.Format
|
+--java.text.DateFormat
|
+--java.text.SimpleDateFormat
Regards.
--
Arnaud Vandyck <http://www.ressource-toi.org/>
"N'a que l'rogneux qui s'grette."