标签:format string orm parse ted span cond bsp long
String createDate = "1503466901000" ;
Long milliseconds = Long.parseLong( createDate);
public String millisecondsToStrDate( Long milliseconds){
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); //日期格式
Date date = new Date( milliseconds);
return sdf.format( date); //日期格式包裹Date 。
}
标签:format string orm parse ted span cond bsp long
原文地址:http://www.cnblogs.com/jpt00/p/7554392.html