JAVA的Data和Timestamp的相互转换

Data转Timestamp:

Timestamp createTime = new Timestamp(new Date().getTime());

Timestamp 转Data:

    Timestamp t = new Timestamp(System.currentTimeMillis());
    Date d = new Date(t.getTime());
原文地址:https://www.cnblogs.com/yanghr/p/13049868.html