0

如何将 Hibernate.TIMESTAMP 转换为 java.util.Date 格式?

4

1 回答 1

0
public void setStartDate(Date startDate) {
    if (startDate != null) {
        this.startDate = new Date(startDate.getTime());
    } else {
        this.startDate = null;
    }
}
于 2017-08-29T19:04:04.063 回答