hey, i need both the import.sql.date; and import.util.date, at the moment im importing them like


How do i specify which library i want for any particular Date object?

You would need to specify the package qualified class name for both the dates.

java.util.Date utilDate = new java.util.Date();
java.sql.Date sqlDate = new java.sql.Date(2342334);

or something like:

import java.util.Date;

java.sql.Date sqlDate = new java.sql.Date(423423);
Date utilDate = new Date();  // util date