java 현재날짜 (1) 썸네일형 리스트형 [JAVA] Calendar, Date, SimpleDateFormat 날짜 호출 Date 매서드에 SimpleDateFormat 매서드를 이용해 원하는 양식으로 호출 SimpleDateFormat 예제 import java.util.calendar import java.text.*; class DateFormatEx1{ public static void main(String[] args){ Date today = new Date(); SimpleDateFormat sdf1, sdf2, sdf3, sdf4; sdf1 = new SimpleDateFormat("yyyy-MM-dd"); sdf2 = new SimpleDateFormat("yy년 MMM dd일 E요일"); sdf3 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); sdf4 = new.. 이전 1 다음