Java형 변환1 [Java] 자바 String to Date, Date to String, String to int, int to String http://nota.tistory.com/m/50 //String to Date String from = "2013-04-08 10:10:10"; SimpleDateFormat transFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date to = transFormat.parse(from); //Date to String Date from = new Date(); SimpleDateFormat transFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String to = transFormat.format(from); // String값을 int형의 값으로 바꾸는 방법 int numInt = Integer.. 2016. 9. 5. 이전 1 다음