In java we have two Date classes like java.util.Date and java.sql.Date.So here can i use java.util.Date for sql operations.?
Asked
Active
Viewed 44 times
1 Answers
1
You can actually populate a java.sql.Date with the time value of a java.util.Date :
java.util.Date d1 = new java.util.Date();
java.sql.Date d2 = new java.sql.Date(d1.getTime());

Arnaud
- 17,229
- 3
- 31
- 44