Java

[Java] SimpleDateFormat

MuGrammer 2015. 4. 2. 21:09
String today = "123456789";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date dt = new Date(Long.parseLong(today));
String todayFormat = sdf.format(sdf);


반응형