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));
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));
댓글
댓글 쓰기