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

import.sql.*;
import.util.*;

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.