Tuesday, March 13, 2012

Code Snippnet: Converting java.util.Date to java.sql.Date


 java.util.Date today = new java.util.Date();
long t = today.getTime();
java.sql.Date dt = new java.sql.Date(t);

No comments:

Post a Comment