728x90 날짜 형식1 java 오늘 날짜 구하고 포맷 형식 변경하기 Date today = new Date(); System.out.println(today); SimpleDateFormat date = new SimpleDateFormat("yyyy/MM/dd"); SimpleDateFormat time = new SimpleDateFormat("hh:mm:ss a"); System.out.println("Date: "+date.format(today)); System.out.println("Time: "+time.format(today)); 2018. 7. 15. 이전 1 다음 728x90