java时间戳是毫秒还是秒 Java年月日字符串(如“20150806”)转化为毫秒数(时间戳)?
Java年月日字符串(如“20150806”)转化为毫秒数(时间戳)?try{ SimpleDateFormat sdf = new SimpleDateFormat( "yyyyMMdd"
Java年月日字符串(如“20150806”)转化为毫秒数(时间戳)?
try{ SimpleDateFormat sdf = new SimpleDateFormat( "yyyyMMdd" ) Date date=sdf.parse("20150806") System.out.println(date.getTime()) }catch(Exception e){ e.printStackTrace() }