Posts /

2018-07-06 TIL

06 Jul 2018

Java에서 Timestamp Date로 변환하기

import java.util.Date;
import java.sql.Timestamp;

Timestamp stamp = new Timestamp(System.currentTimeMillis());
Date date = new Date(stamp.getTime());
System.out.println(date);

Twitter Facebook Google+