Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: having problem with getting a date!!!
|
Posted: Apr 14, 2002 11:30 AM
|
|
And the way to solve it is to import java.util.Date, or java.sql.Date (whichever one you really want) explicitly. So you might end up with something like this:import java.util.*;
import java.sql.*;
import java.util.Date;
Alternatively, you can fully qualify the name in your code, for example:java.util.Date utilDate = new java.util.Date();
java.sql.Date sqlDate = new java.sql.Date(System.currentTimeMillis());
Of course, if you want to use both in the same module, you will need to fully specify at least one of them.
Now, you are well on your way to getting a date. Don't forget to bring flowers.
|
|