0

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?

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by ~s.o.s~
0

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

Edited by ~s.o.s~: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.