1public class MainClass {
2
3 public static void main(String[] args) {
4 java.util.Date utilDate = new java.util.Date();
5 java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());
6 System.out.println("utilDate:" + utilDate);
7 System.out.println("sqlDate:" + sqlDate);
8
9 }
10
11}
12