티스토리 뷰
String dtString = "12 12 2012";
SimpleDateFormat transFormat = new SimpleDateFormat("dd MM yyyy", Locale.ENGLISH);
Date to = transFormat.parse(dtString);
SimpleDateFormat transFormat2 = new SimpleDateFormat("yyyy-MM-dd");
String to2 = transFormat2.format(to);
'JAVA' 카테고리의 다른 글
Collector 를 사용하여 groupingBy 하기 (0) | 2017.11.22 |
---|---|
Array to ArrayList (0) | 2017.11.07 |
리눅스에 자바 설치 (0) | 2017.11.06 |
댓글