java时间戳转化成日期格式

String lastDate = XXX;
Long time = new Long(lastDate);
Calendar c = Calendar.getInstance();
c.setTimeInMillis(time);
Date releaseDate = c.getTime();
XXX为一个时间戳,

你可能感兴趣的:(java)