Date()转timestamp:
new Timestamp((new Date()).getTime())
timestamp转Date():
Timestamp t = new Timestamp(System.currentTimeMillis());
//System.out.println(t);
Date d = new Date(t.getTime());
Date()转timestamp:
new Timestamp((new Date()).getTime())
Timestamp t = new Timestamp(System.currentTimeMillis());
//System.out.println(t);
Date d = new Date(t.getTime());